GithubHelp home page GithubHelp logo

ruipimentel / flipthem-simulation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from csherfield/flipthem-simulation

0.0 0.0 0.0 1020 KB

A simulation lab to test different strategies within the game of multi-rate threshold FlipThem

Python 100.00%

flipthem-simulation's Introduction

FlipThem-Simulation

A simulation lab to test different strategies within the game of multi-rate threshold FlipThem

Executing the code

It's strongly suggested to utilize a virtual environment to install project dependencies in a sandbox. The following command may be used to do that:

python3 -m venv .venv

Then, to activate the virtual environment in bash for the current shell session, run the following command:

source .venv/bin/activate

With this environment actived, it is possible to automatically install all dependencies with the provided requirements.txt file:

pip install -r requirements.txt

One can also list and operate over modules using the following commands:

pip install somepackage             # Installs new package.
pip install --upgrade somepackage   # Upgrades existing packages.
pip freeze > requirements.txt       # Updates the `requirements.txt` file.

After which the requirements.txt file must be committed.

If you get ModuleNotFoundError: No module named 'tkinter' when trying to execute the code, please note that it may be necessary to install Tkinter on your operating system. On the latest versions of Debian systems, this can be done through:

apt install python3-tk

Note: apt install python-tk is not the same as apt install python3-tk.

While using pip (especially pip list) a WARNING may be issue regarding pip version. One can simply use the following command to upgrade it in order for the WARNING to stop appearing:

pip install --upgrade pip

Finally, to deactivate this environment (restoring the previous shell session one), the following command may be used:

deactivate

At which point the environment folder can be destroyed if necessary:

rm -rf .venv/

Setting up Visual Studio Code

The activation (and "deactivation") of the virtual environment can be dealt automatically by Visual Studio Code's Python extension. All you have to do is accept the installation of the suggested extension (or search for it in the "Extensions" tab), then open the project folder (or restart VS Code).

flipthem-simulation's People

Contributors

csherfield avatar ruipimentel avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.