Skip to content

Ruby-Risks is a game designed by Professor Dennis Shasha and realized by me.

Notifications You must be signed in to change notification settings

mrwrongwrongwrong/Ruby-Risks

Repository files navigation

To Play:

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

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

python3 main.py

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:

pip3 install python3.7-tk

I solved my problem.

Embedding python game in browser

Solution 1: pyjs, compile python code to javascript, then use javascript to integrate with browser http://pyjs.org/

#Update(December 18th,2021)

  1. In terminal: $python3 ai.py
  2. In terminal: $python3 main_update1.py

About

Ruby-Risks is a game designed by Professor Dennis Shasha and realized by me.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published