Giter VIP home page Giter VIP logo

brainlord's Introduction

BrainLord

A colorful code-breaking game

Anjana Vakil

Intro to Python Programming Saarland University 20 December 2012

Running the game:

Clone the repository or download and expand the .zip archive, and move into the resulting brainlord directory.

Then, to run the game, simply run the script game_driver.py with Python 3.

For example:

Anjanas-MacBook-Air:Sheet6 Anjana$ python3 game_driver.py

This will launch the GUI for the game. Use the buttons to navigate, and read the rules to learn how to play.

Modules & other files:

The following files contain necessary classes and functions and must be in the same directory as game_driver.py:

  • BLapp.py
  • board.py
  • functions.py
  • pegs.py
  • row.py

Please see the comments in each of these files for more information.

The following file lists the game rules, and must also be in the same directory:

  • rules.txt

The game stores all the player names and scores in the file:

  • scores.txt

The first time the game is played in the given directory, this file will be created. After that, the app will read the "scores.txt" file and display the high scores on the "High Scores" page. Deleting this file will erase all the scores in the game's memory.

Have fun, thanks for playing!

brainlord's People

Contributors

vakila avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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