Giter Club home page Giter Club logo

peekaboo-console-game-comp6411's Introduction

PeekABoo

Peek A Boo, a console based grid game built with Python 3.
Assignment-01 COMP6411 - Comparative Study of Programming Languages @ Concordia University.

Short Summary

The game will display a square grid, with the columns labeled with letters, and the rows with numbers. Player's job is to find the hidden pairs in as few guesses as possible.
Main menu

Commands

Run this command to start game, choose grid size as either 2,4 or 6.

python game.py 4

Option 1: Player has to choose two coordinates to make a pair of same numbers.

a0 
b1 

Option 1

Option 2: Player can choose any co-ordinate to uncover cell.

a1

Option 2

Lastly, player final score is based on their total guesses, such that your guesses will be divided by minimum guess required to calculate final score. Final Score

Game Parameters & Rules.

Initially grid size is restricted to either 2x2, 4x4 or 6x6 dimension, but it can be changed to any even size.

    if (sizeX == '2' or sizeX == '4' or sizeX == '6'): #change this condition to (sizeX%2==0)
        myinstance = Main(int(sizeX))
        ...
        ...

xX-End note-Xx Feel Free to fork and optimize code, pull requests will be accepted.

peekaboo-console-game-comp6411's People

Contributors

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