Skip to content

tscolari/dungeon_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published