The web version of the game Ruby Risks is located on Dr.Ecco's webiste at NYU: https://cims.nyu.edu/~as9913/drecco/games/ruby_game/
In order to play, please click on the link and hit the button "POPUP".
Ruby-Risks is a game designed by Professor Shasha and realized by me. In the game set-up, each player can choose an amount of gems to guess, if the predicted amount is less or equal to the amount of gems in the box, then the player gains the predicted amount of gems, otherwise, the player get nothing, hence it is a "risk".
This is a final Project for Heuristic Problem solving. Enjoy the game by "python main.py". :) "main2 is a variant of the original game, more risk is included."
Well, "python main.py" in terminal works on my Linux system.
Since my mac OS system has multiple python environment installed, in order to start the game, execute
in termain.
In addition, I did not use pycharm this time, just run it in the terminal.
#Environment Setups
If you have troubles as ---Error report "ModuleNotFoundError: No module named '_tkinter' " checkout: https://stackoverflow.com/questions/25905540/importerror-no-module-named-tkinter
By executing:
I solved my problem.
Solution 1: pyjs, compile python code to javascript, then use javascript to integrate with browser http://pyjs.org/
#Update(December 18th,2021)
- In terminal: $python3 ai.py
- In terminal: $python3 main_update1.py