Skip to content

haridask/snakeAndLadder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Snake And Ladder

Snake and Ladder single player game

Options

config: dict<int, int> Optional

key: position at which snakes/ladders appear
value: number of steps to jump ahead/back
default: {}

dieOptions: Array Optional

supported dieOptions
default: [1, 2, 3, 4, 5, 6]

turns: int Required

Number of turns to play

To run:

from snake_and_ladder import SnakeAndLadder

snakeAndLadder = SnakeAndLadder(config, dieOptions)
snakeAndLadder.play(20)

About

Snake and Ladder single player game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages