Commit graph

146 commits

Author SHA1 Message Date
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
Brad Van Vugt
f15d7b53d5 Merge branch 'master' of github.com:BattlesnakeOfficial/rules 2020-01-03 12:56:47 -08:00
Brad Van Vugt
72b6d78c93 More test coverage. 2020-01-03 12:56:33 -08:00
Brad Van Vugt
01d0951b7d
Add Codecov badge to README 2020-01-03 11:53:01 -08:00
Brad Van Vugt
9f411e097c Add Codecov to CI Pipeline 2020-01-03 11:49:25 -08:00
Brad Van Vugt
7d29514b6c More test coverage for StandardRuleset. 2020-01-03 11:39:19 -08:00
bvanvugt
010b3aa08f Rename consts, remove pointers where not wanted/needed, snake placement tests. 2020-01-02 16:10:33 -08:00
bvanvugt
53d57d8e6a Update README 2020-01-01 23:10:49 -08:00
Brad Van Vugt
167e9b3d4a
Create CODEOWNERS 2020-01-01 17:56:42 -08:00
Brad Van Vugt
e7bddb9521
Create .gitignore 2020-01-01 17:48:46 -08:00
Brad Van Vugt
ad1dbf5121 Merge branch 'master' of github.com:BattlesnakeOfficial/rules 2020-01-01 17:46:08 -08:00
Brad Van Vugt
998dc0f8cc init go module 2020-01-01 17:46:01 -08:00
Brad Van Vugt
bb7f567edb
Update ci.yml 2020-01-01 17:43:46 -08:00
Brad Van Vugt
248b9c1781
Add standard LICENSE 2020-01-01 17:40:37 -08:00
Brad Van Vugt
b257aae7b0
Update ci.yml 2020-01-01 17:32:14 -08:00
Brad Van Vugt
824ac43a4c
Add CI. 2020-01-01 17:30:57 -08:00
Brad Van Vugt
2223ccf8a5
Update standard_test.go 2020-01-01 17:23:23 -08:00
Brad Van Vugt
29a8fd1dd4
Update standard.go 2020-01-01 17:23:01 -08:00
Brad Van Vugt
d477201b1e
Rename models.go to ruleset.go 2020-01-01 17:22:16 -08:00
Brad Van Vugt
11e5735109
Update models.go 2020-01-01 17:22:00 -08:00
Brad Van Vugt
798be609ba
Create standard_test.go 2019-12-31 20:43:45 -08:00
Brad Van Vugt
321b67239a
Create standard.go 2019-12-31 20:43:23 -08:00
Brad Van Vugt
d75012f627
Create models.go 2019-12-31 20:43:05 -08:00
Brad Van Vugt
b4ef73f378
Initial commit 2019-12-31 20:42:28 -08:00