Created
December 15, 2019 12:11
-
-
Save ralfw/9b2d63a957b21e7497d2eddff751301e to your computer and use it in GitHub Desktop.
ES Challenge - Bowling Game Kata Submissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RollMade { | |
public int Pins; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RollWasRegistered { | |
public int Pins; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class BowlingEvent {} | |
class RollCountsTowardsScore : BowlingEvent { | |
public int Pins; | |
} | |
class FrameWasCompleted : BowlingEvent {} | |
class BonusRequired : BowlingEvent { | |
public int NumberOfBonusRolls; | |
} | |
class RollCountsTowardsBonus : BowlingEvent { | |
public int Pins; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Event {} | |
class Rolled : Event { | |
public uint Pins; | |
} | |
abstract class ScoreRelevantEvent : Event { | |
public uint Pins; | |
} | |
class FrameCompleted : ScoreRelevantEvent {} | |
class SpareBonusEarned : Event {} | |
class SpareBonusAssigned : ScoreRelevantEvent {} | |
class StrikeBonusEarned : Event {} | |
class StrikeBonusAssigned : ScoreRelevantEvent {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PinsScored { | |
public int Pins; | |
public int Frame; | |
} | |
class BonusReceived { | |
public int Pins; | |
public int Frame; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment