diff --git a/PROTOCOL.md b/PROTOCOL.md index ff2c9a4..39d9002 100644 --- a/PROTOCOL.md +++ b/PROTOCOL.md @@ -58,6 +58,7 @@ Action commands return either an empty list of cards or the relevant list of car s: Look at the top X cards of the current players deck, where x is their Life total. Returns nothing if unable to scry (i.e. the player can not currently draw a card). Otherwise return a list of zero to three cards representing what was seen. d : Draw the the card at position X in the result return from a Scry. Returns nothing if the player is unable to draw. Otherwise return the current players hand + b : Bottom the the card at position X in the result return from a Scry. Returns nothing if the player is unable to draw. Otherwise return the current players hand p : Play the card at position X in the current players hand to position Y on the current player's side of the board. Return nothing if the card cannot be played, otherwise return the current players side of the board. m : Move the card at position X to position Y, with both positions being on the current players side of the board. Return nothing if the card cannot be moved, otherwise return the current players side of the board. a : Attack with the card at position X on the current players side of the board at position Y on the opponents side of the board. Returns nothing if the attack can not be made, or the current players side of the board. diff --git a/cardtype.go b/cardtype.go index ceaffa3..39895bc 100644 --- a/cardtype.go +++ b/cardtype.go @@ -29,7 +29,9 @@ const ( Duelist //puts +0/+1 on allied unit //Rank 4 - Vanguard //puts +1/+0 on allied unit + Vanguard //puts +1/+0 on allied unit + Student //scry 2, draw 1 + Librarian //scry life, draw 1 //Rank 5 Elephant //Created a dud on enemy board diff --git a/cardtype_enumer.go b/cardtype_enumer.go index c05c5d4..ad91282 100644 --- a/cardtype_enumer.go +++ b/cardtype_enumer.go @@ -8,9 +8,9 @@ import ( "fmt" ) -const _CardTypeName = "EmptyValueValkSpeedsterCommanderPaladinScholarWarriorFighterSevenShieldWallHealthPotionTreeGoblinChupacabraAllyEnemyDuelistVanguardElephantMesmeristDivinerHologramGoblinSpawnDud" +const _CardTypeName = "EmptyValueValkSpeedsterCommanderPaladinScholarWarriorFighterSevenShieldWallHealthPotionTreeGoblinChupacabraAllyEnemyDuelistVanguardStudentLibrarianElephantMesmeristDivinerHologramGoblinSpawnDud" -var _CardTypeIndex = [...]uint8{0, 10, 14, 23, 32, 39, 46, 53, 60, 65, 75, 87, 91, 97, 107, 111, 116, 123, 131, 139, 148, 155, 163, 174, 177} +var _CardTypeIndex = [...]uint8{0, 10, 14, 23, 32, 39, 46, 53, 60, 65, 75, 87, 91, 97, 107, 111, 116, 123, 131, 138, 147, 155, 164, 171, 179, 190, 193} func (i CardType) String() string { i -= -1 @@ -20,7 +20,7 @@ func (i CardType) String() string { return _CardTypeName[_CardTypeIndex[i]:_CardTypeIndex[i+1]] } -var _CardTypeValues = []CardType{-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22} +var _CardTypeValues = []CardType{-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24} var _CardTypeNameToValueMap = map[string]CardType{ _CardTypeName[0:10]: -1, @@ -41,12 +41,14 @@ var _CardTypeNameToValueMap = map[string]CardType{ _CardTypeName[111:116]: 14, _CardTypeName[116:123]: 15, _CardTypeName[123:131]: 16, - _CardTypeName[131:139]: 17, - _CardTypeName[139:148]: 18, - _CardTypeName[148:155]: 19, - _CardTypeName[155:163]: 20, - _CardTypeName[163:174]: 21, - _CardTypeName[174:177]: 22, + _CardTypeName[131:138]: 17, + _CardTypeName[138:147]: 18, + _CardTypeName[147:155]: 19, + _CardTypeName[155:164]: 20, + _CardTypeName[164:171]: 21, + _CardTypeName[171:179]: 22, + _CardTypeName[179:190]: 23, + _CardTypeName[190:193]: 24, } // CardTypeString retrieves an enum value from the enum constants string name.