evanthegrayt / ro_sham_bo Goto Github PK
View Code? Open in Web Editor NEWπ€πΌπ§»βοΈ Simple Rock, Paper, Scissors game for the command-line
License: MIT License
π€πΌπ§»βοΈ Simple Rock, Paper, Scissors game for the command-line
License: MIT License
Just for fun. Make it so either player can always win. Make it "play fair" until the to-be loser gets enough points to almost win. Then sweep the rest of the round. This will make it still seem random.
Add rdoc documentation.
Installation should just require gem install rock-paper-scissors
or something.
The cheating isn't actually being tested properly. This...
game = RoShamBo.new(cheater: :user)
50.times do
game.play(:rock) until game.over?
assert_equal(:user, game.winner)
end
...should be...
50.times do
game = RoShamBo.new(cheater: :user)
game.play(:rock) until game.over?
assert_equal(:user, game.winner)
end
Only 2.6 is tested. We need to test 2.7, 3.0, and 3.1.
Change one of them to -C
Make the output look better. Maybe add some color to make the score more visible.
Track number of draws.
This could use more objects. I think Rules and Score could be their own class. The bin/ro_sham_bo
executable should also be extracted to a class so we can test it.
Also, the only thing you can do is play the game via the command line; the API doesn't play the game. You should be able to play the game via CLI, or a ruby console, via RoShamBo.play
.
Add tests, along with simplecov.
After #6, add CI that ensures tests are passing.
There currently are no validations for types in initialize
.
Make the readme more complete. Installation instructions, etc.
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.