Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 482 Bytes

File metadata and controls

27 lines (19 loc) · 482 Bytes

darkroom

  • Create a map of tuples representing x, y coordinates of n size.

  • Randomly assign a exit, monster & player position.

  • The player wins if they reach the exit, loses if they land on the monster.

######Example size 3 grid:

(0, 0), (0, 1), (0, 2),
(1, 0), (1, 1), (1, 2),
(2, 0), (2, 1), (2, 2),
(3, 0), (3, 1), (3, 2)

######Example size 4 map:

  • ^ = Player
  • . = Breadcrumbs
|_____| |__^__| |_____|

|_____| |_____| |__.__|

|__.__| |__.__| |__.__|