8000 GitHub - natemcintosh/DigitParty: Engines that play [Digit Party](https://digit.party/)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

natemcintosh/DigitParty

Repository files navigation

DigitParty

A copy of Digit Party that can be programatically played. It can also be manually played, but it's a lot easier to just play on the site. The intent here is to have fun making various engines that play the game, and compare the performance.

If you create an engine, create a new file in src/ with the name of the engine. Then export

  • Your engine, e.g. export MyEngine. Make sure MyEngine <: AbstractEngine.
  • The following method: pick_next_spot(g::Game, e::MyEngine)::CartesianIndex{2}

To run it:

g = Game()
score = play!(g, MyEngine())
pct_max = get_pct_of_max(g)

to run a single game with your engine; your score is returned. See examples/naive1.jl for a runnable example.

About

Engines that play [Digit Party](https://digit.party/)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0