Commit graph

123 commits

Author SHA1 Message Date
bvanvugt
78ca2e09c6 Add goreleaser config. 2020-12-10 21:01:43 -08:00
Brad Van Vugt
8320ef23cd
Update README.md 2020-12-10 16:05:17 -08:00
bvanvugt
f2b52b85d6 Configurable random seed.
Fix food spawning parameters.
Added Solo game result condition.
Added support for 'maze' mode.
Added seed, ruleset to view output.
2020-12-10 15:56:22 -08:00
bvanvugt
8d764e1477 Update build path and docs. 2020-12-10 15:02:29 -08:00
Len Payne
6c1e0d9547
Command Line Interface to Run Games Locally (#25)
* Initial Attempts at Cobra Command
* Update to the README
* Fixes for Linter

Thanks @LenPayne for all your hard work getting this started!
2020-12-10 14:35:52 -08:00
Brad Van Vugt
e01a1bf505
"Feast" -> "Maze". Fix backfill bug. (#26) 2020-12-08 13:20:13 -08:00
bvanvugt
d7ee7b97fb New "feast" game mode (alpha) 2020-12-07 18:11:00 -08:00
bvanvugt
ca4b6c5dce Add parameters for food spawn chance and min food. 2020-11-20 12:00:58 -08:00
bvanvugt
c6d9ba12ab Never spawn food within one move of any snake. 2020-11-10 13:00:13 -08:00
Brad Van Vugt
f5aec61e04 Rename "EliminatedByStarvation" > "EliminatedByOutOfHealth" 2020-09-10 12:00:56 -07:00
Brad Van Vugt
92592c2aba Allow previous game state to include eliminated snakes. Fixes #19. 2020-09-10 11:49:41 -07:00
Brad Van Vugt
5fecc99934
Update README.md 2020-09-07 09:03:10 -07:00
Brad Van Vugt
fb115ddc39
Update README.md 2020-09-07 09:01:50 -07:00
Brad Van Vugt
ded0c9612d
Update README.md 2020-09-02 12:45:05 -07:00
Brad Van Vugt
2cb1943463 Add tests to ensure that head-to-heads on food remove the food. 2020-08-31 13:30:09 -07:00
Brad Van Vugt
a342f87ed6 Ensure snakes eating on their last turn survive! 2020-08-31 13:18:03 -07:00
Brad Van Vugt
e804ec9f17 Merge branch 'master' of github.com:BattlesnakeOfficial/rules 2020-07-29 13:15:00 -07:00
Brad Van Vugt
dcbc3aac5a Add static seed to royale rulset. 2020-07-29 13:14:42 -07:00
Brad Van Vugt
b92d4a0493
Update main.yml 2020-07-29 10:49:50 -07:00
Brad Van Vugt
64dfc6dd55 Royale: Shrink a random edge instead of the whole board 2020-07-29 10:24:38 -07:00
Brad Van Vugt
2ca57f0779 Royale mode does damage instead of eliminating. 2020-07-27 10:59:52 -07:00
Brad Van Vugt
dd5a2fd88f Add new royale ruleset. 2020-07-25 17:37:41 -07:00
Brad Van Vugt
ccc2a27fd1 Rename squad tests to avoid name collisions. 2020-07-25 17:35:20 -07:00
Brad Van Vugt
5aec70de2b Prioritize self-collisions over other collisions. Fixes #16. 2020-07-21 17:11:12 -07:00
Brad Van Vugt
c74436e709 Rename TeamRuleset -> SquadRuleset 2020-07-21 14:59:41 -07:00
Brad Van Vugt
01eaf6267d Rename TeamRuleset -> SquadRuleset 2020-07-21 14:58:56 -07:00
Brad Van Vugt
d0400fcb18 Always spawn food within two moves of each snake on known board sizes. 2020-07-21 13:43:28 -07:00
sjbcastro
70a8107a6f
Implemented TestCreateNextBoardState (#15) 2020-05-28 11:26:44 -07:00
sjbcastro
2d62a58c9b
Made snakes spawn on odd or even diagonal points (#14). Fixes #12.
Randomly placed snakes will now always spawn on "even" squares.
2020-05-26 15:07:43 -07:00
Brad Van Vugt
68043109a5 Fix function name and interface tests. 2020-05-17 14:38:39 -07:00
Brad Van Vugt
fe2a415cac Add solo gameplay ruleset. 2020-05-17 14:29:30 -07:00
Brad Van Vugt
71fc6bf503 Add game over detection to each ruleset. 2020-05-17 14:22:09 -07:00
Brad Van Vugt
44b6b94666
Add TeamRuleset (#13)
This builds on work done by @dlsteuer in #10
2020-02-20 10:24:44 -08:00
Brad Van Vugt
8153585f57
Add "EliminatedBy" to snake eliminations. (#11)
* add eliminated by

* add test

* make sure largest snake is listed as eliminator on head to head collisions

* remove unused type def

* Reduce memory usage during elimination checks.

Co-authored-by: Daniel Steuernol <dlsteuer@gmail.com>
2020-02-19 11:44:48 -08:00
Brad Van Vugt
a241c526b2 Merge branch 'master' of github.com:BattlesnakeOfficial/rules 2020-02-19 11:15:10 -08:00
Brad Van Vugt
021b363822 Add comment to make sure random spawns are always same color. 2020-02-19 11:15:03 -08:00
bvanvugt
ccd7a4e47d Maintain at least 1 food on board at all times. 2020-02-01 10:47:15 -08:00
bvanvugt
6edb4ce5d4 Reduce standard food spawn to a 15% chance. 2020-01-15 16:42:43 -08:00
bvanvugt
d7b4663ef4 Bump food spawn rate to better match previous algorithm. 2020-01-14 16:39:41 -08:00
bvanvugt
37a4f3585b Remove dead code from unit tests. 2020-01-14 16:39:26 -08:00
bvanvugt
60c0b149ba Merge branch 'master' of github.com:BattlesnakeOfficial/rules 2020-01-09 13:59:03 -08:00
bvanvugt
20c42a7a72 Constant whitespace. 2020-01-09 13:58:49 -08:00
Brad Van Vugt
b69d768b13 correct error message 2020-01-05 21:53:11 -08:00
Brad Van Vugt
9c13dea6c0 Add error cases to standard move resolution. 2020-01-05 21:03:54 -08:00
Brad Van Vugt
73085679f6 Merge branch 'master' of github.com:BattlesnakeOfficial/rules 2020-01-05 17:08:18 -08:00
Brad Van Vugt
7854e11e51 Package name rulesets -> rules. 2020-01-05 17:08:05 -08:00
Brad Van Vugt
2f7df375f7
Update main.yml 2020-01-03 15:42:02 -08:00
Brad Van Vugt
fb95123bb6
Update main.yml 2020-01-03 15:35:40 -08:00
Brad Van Vugt
6af2480a30
Update and rename ci.yml to main.yml 2020-01-03 15:32:27 -08:00
Daniel Steuernol
9e11ef95c8 Allow ci to run against pr (#7) 2020-01-03 15:12:48 -08:00