Giter Site home page Giter Site logo

aparnagopalakrishnan432 / snake-and-ladder-python Goto Github PK

View Code? Open in Web Editor NEW

This project forked from acmpesuecc/snake-and-ladder-python

0.0 0.0 0.0 22 KB

A simple game of snakes and ladders created on Python 3.7.6

License: MIT License

Python 100.00%

snake-and-ladder-python's Introduction

snake-and-ladder-python

A simple game of snakes and ladders created on Python 3.7.6 as a school project.

Installation

Dependencies

  • Python 3.7.6
  • termcolor 1.1.0

Setup

  1. Install Python 3.7.6

  2. Install and activate the virtual environment

pip install virtualenv

If you haven't already, clone this project from your fork, and enter the main directory.

# on linux/macOS
source env/bin/activate
# on windows
env\bin\activate

Your command prompt should look something like this -

(env) $ 
  1. Install all dependencies
pip install -r requirements.txt

In the event you want to add a dependency, make sure to pip install it only when the virtualenv is active. Once that is done, run the following command to add your dependency to requirements.txt -

pip freeze > requirements.txt
  1. Run it
(env) $ python Snakes.py

Rules

  1. After running the game, the you'll be asked about the number of users ranging from 1 and 4

  2. The grid gets loaded with user's beed at the start position

  3. Press roll to roll the dice.

  4. With each roll the grid gets updated with an updated score the goal.

  5. The first person to reach the end will be declared as a winner

snake-and-ladder-python's People

Contributors

arpitnigam45 avatar anirudhrowjee 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.