Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A simple ludo simulator

Project description

This repository contains code to create a simple ludo simulator in Python to settle a bet between Pip and Anna.

The root folder contains this README.md, a LICENSE, and setup.py, for configuring this repository as a distributable package (on PyPI and Anaconda's conda-forge channel). The tests folder contains unit and integration tests for confirming the source code is functioning as expected. (These tests are to be run in the pytest package testing framework: to run these tests, follow the instructions in the runTest.py file.) The ludoSim folder contains the source code package and a README detailing its contents. The build folder contains the latest build of the ludoSim source code package, and the dist folder contains distributions of this build in different compressed file formats.

Running the ludoSim/analysis/gameAnalysis.py script runs 10000 games and displays results to determine the outcome of the bet. Running this script took less than a minute on a Windows10 PC with an Intel core i5-6500 CPU with 16 GB DDR4-2133 RAM.

To run a game of ludo, navigate to the local folder where you have cloned or installed this repository (unnecessary if you have installed via pip install ludoSim-jaib1 or conda install ludoSim-jaib1 -c conda-forge), launch python, and run:

from ludoSim import *
b = Board() # look at the optional input args to set the board however you'd like
b.playGame()

Note, this package was created using the Anaconda (5.3) package manager distribution (running Python 3.7), and imports some packages native to Anaconda. For best results, download and install Anaconda, navigate to the local folder where you have cloned or installed this ludoSim repository (unnecessary if you have installed via conda install ludoSim-jaib1 -c conda-forge), and in your conda terminal run:

conda activate ludoSim_env

to activate the environment with the appropriate package dependencies which were used at the time this package was created

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ludoSim-jaib1, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size ludoSim-jaib1-0.0.5.tar.gz (3.6 MB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page