From 692dec19e93a87aed63310620ccc60a499be5a43 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Mon, 26 Dec 2022 18:49:21 -0600 Subject: [PATCH] stub: some vars from int to bool `0` is converted to false and `1` is converted to true according to https://www.codingame.com/playgrounds/40701/help-center/stub-generator (I think) --- config/stub.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/stub.txt b/config/stub.txt index 3c6809c..8423097 100644 --- a/config/stub.txt +++ b/config/stub.txt @@ -2,9 +2,9 @@ read width:int height:int gameloop read myMatter:int oppMatter:int - loop height loop width read scrapAmount:int owner:int units:int recycler:int canBuild:int canSpawn:int inRangeOfRecycler:int + loop height loop width read scrapAmount:int owner:int units:int recycler:bool canBuild:bool canSpawn:bool inRangeOfRecycler:bool write WAIT INPUT owner: 1 = me, 0 = foe, -1 = neutral -recyclerOwner: 1 = mine, 0 = foe's, -1 = absent \ No newline at end of file +recyclerOwner: 1 = mine, 0 = foe's, -1 = absent