Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 599 Bytes

README.md

File metadata and controls

34 lines (26 loc) · 599 Bytes

Dungeon Game

Simple implementation of the Dungeon Game in GO.

Contains 2 strategies: Recursive and Dijkstra. Dijkstra is hard coded in main.go at the moment.

Running

It takes a dungeon map YAML as parameter:

# Example dungeon map:
---
rooms:
- [1, 2, -5, -4]
- [-5, -6, -7, 9]
- [9, 10, 11, 12]

To run:

./dungeongame -dungeon ./dungeonmap.yml
# => MIN HP: 4
# => BEST ROUTE: RIGHT -> DOWN -> DOWN -> RIGHT -> RIGHT

Tests

go get github.com/onsi/ginkgo/ginkgo
go get github.com/onsi/gomega
make test