Skip to content

Instantly share code, notes, and snippets.

@ralfw
Created December 15, 2019 12:11
Show Gist options
  • Save ralfw/9b2d63a957b21e7497d2eddff751301e to your computer and use it in GitHub Desktop.
Save ralfw/9b2d63a957b21e7497d2eddff751301e to your computer and use it in GitHub Desktop.
ES Challenge - Bowling Game Kata Submissions
class RollMade {
public int Pins;
}
class RollWasRegistered {
public int Pins;
}
abstract class BowlingEvent {}
class RollCountsTowardsScore : BowlingEvent {
public int Pins;
}
class FrameWasCompleted : BowlingEvent {}
class BonusRequired : BowlingEvent {
public int NumberOfBonusRolls;
}
class RollCountsTowardsBonus : BowlingEvent {
public int Pins;
}
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 {}
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