sushantad Goto Github PK
Name: Sushant Adhikari
Type: User
Bio: Scala Developer, inquisitive about coding and problem solving.
Name: Sushant Adhikari
Type: User
Bio: Scala Developer, inquisitive about coding and problem solving.
A minimal file server-client based on Akka Http making Http client calls to its counter part file_server.
A simple Akka HTTP based ups
Interview challenge for potential candidates.
A console based mini shopping cart.
A palindrome is a word, phrase, number, or other sequence of units that can be read the same way in either direction, with general allowances for adjustments to punctuation and word dividers. For a positive integer P of not more than 1000000 digits, write the value of the smallest palindrome larger than P to output. (Numbers are always displayed without leading zeros.) Ensure that the assignment is submitted with working test cases
A simple web crawler written using scala, play, akka actor and scala-scraper
A new game in carrom-board called Clean Strike is played by 2 players with multiple turn s. A turn has a player attempting to strike a coin with the striker. Players alternate in taking turns.The game is described as follows: There are 9 black coins, a red coin and a striker on the carrom-board Strike - When a player pockets a coin he/she wins a point Multi-strike - When a player pockets more than one coin he/she wins 2 points. All, but 2 coins, that were pocketed, get back on to the carrom-board Red strike - When a player pockets red coin he/she wins 3 points. If other coins are pocketed along with red coin in the same turn, other coins get back on to the carrom-board Striker strike - When a player pockets the striker he/she loses a point Defunct coin - When a coin is thrown out of the carrom-board, due to a strike, the player loses 2 points, and the coin goes out of play When a player does not pocket a coin for 3 successive turns he/she loses a point When a player fouls 3 times (a foul is a turn where a player loses, at least, 1 point), he/she loses an additional point A game is won by the first player to have won at least 5 points, in total, and, at least, 3 points more than the opponent When the coins are exhausted on the board, if the highest scorer is not leading by, at least, 3 points or does not have a minimum of 5 points, the game is considered a draw Input Input bases on given menu options Input Player 1: Choose an outcome from the list below 1. Strike 2. Multistrike 3. Red strike 4. Striker strike 5. Defunct coin 6. None >1 Player 2: Choose an outcome from the list below 1. Strike 2. Multistrike 3. Red strike 4. Striker strike 5. Defunct coin 6. None >1 Output Output Player 2 has won... Exiting System! Score: Player 1: 2 Player 2:5 Getting Started Clone this repo to your local machine using https://github.com/SushantAd/myRepo.git Prerequisites java jdk and/or any java ide. Running the Code: We can run the code using 2 modes: IDE: For console inputs: Run Game.java For test values from File: Run GameFileInput.java Command Prompt: For console inputs: javac Game.java java GameFileInput.java For test values from File: javac GameFileInput.java java GameFileInput Test Cases For test cases I have used file input to check if all the outcomes are correct: Test cases will deal with the following use cases: For input to menu console: Leading Zeroes Strings and Alpha numeric Values Negative Values Floating point Values Empty spaces in Input values For output oriented results: Player 1 wins Player 2 wins To reproduce Foul check (When a player fouls 3 times) To reproduce NoPocketCheck (When a player does not pocket a coin for 3 successive turns) No Black coins Available (When number of Black coins are finished) No Red Available (When number of Black coins are finished) Draw (When the coins are exhausted on the board, if the highest scorer is not leading by, at least, 3 points or does not have a minimum of 5 points, the game is considered a draw) Assumptions: Each occurence when a player doesn't pocket, will be considered for NoPocket. Each occurence when a player gives a wrong input, will be treated as an actual turn and the next player will get to strike. Currently only 2 players will be allowed for the game. No of coins can be changed when the gameRule object in initialized.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.