Skip to content

ultra-hash/bingo-game-with-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

bingo-game-with-python

type of plays possible

  1. player vs computer
  2. player vs player
  3. computer vs computer

how to play

setup

In the ' main ' function use "player(name) or computer(name) " for player1 and player2

run

use main() or max_games(1) to start game

when you wannt to run computer vs computer for n time use max_games(n)

game is built with 4 objects

classes

  1. game
  2. board
  3. player
  4. computer
  5. super_computer (in progress)

game class

game class contains game logic

methods in game class

  1. who_is_next
  2. strike
  3. sync_both_boards
  4. update_score
  5. winner
  6. gameover

board class

board class contains single method and is main objective is to hold board data

methods in the board class

1.print_board

player class

player classs is the player object which contain name , score, input to the game

Methods in the player class

  1. game_input

computer class

computer class is same as player object but the computer class takes the input all by itself using 'random.choice'

Methods in the computer class

  1. c_input

super_computer class

super_Computer class is the same as computer class but it is made for winning game unlike computer class which just inputs random number in the allowed numbers

methods in the super_computer class in progress

About

type of plays possible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages