-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
richelbilderbeek
committed
Nov 14, 2015
1 parent
4d3caa1
commit 625d2d8
Showing
38 changed files
with
590 additions
and
233 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,25 @@ | ||
# K3OpEenRij | ||
C++ game of connect-three with K3 theme | ||
# K3-Op-Een-Rij | ||
|
||
C++ game of connect-three with K3 theme. | ||
|
||
# Screenshot | ||
|
||
Most recent at the top. | ||
|
||
![K3-Op-Een-Rij menu of version 7.0](Screenshots/K3OpEenRijMenu_7_0.png) | ||
![K3-Op-Een-Rij instructions of version 7.0](Screenshots/K3OpEenRijInstructions_7_0.png) | ||
![K3-Op-Een-Rij game version 7.0](Screenshots/K3OpEenRij_7_0.png) | ||
|
||
![K3-Op-Een-Rij game version 6.0](Screenshots/K3OpEenRij_6_0.png) | ||
|
||
![K3-Op-Een-Rij game version 5.1 on Lubuntu](Screenshots/K3OpEenRij_5_1Lubuntu.png) | ||
![K3-Op-Een-Rij game version 5.1 on Windows](Screenshots/K3OpEenRij_5_1Windows.png) | ||
|
||
![K3-Op-Een-Rij game version 5.0](Screenshots/K3OpEenRij_5_0.png) | ||
|
||
![K3-Op-Een-Rij menu of version 5.0](Screenshots/K3OpEenRijMenu_5_0.png) | ||
|
||
![K3-Op-Een-Rij menu of version 4.0](Screenshots/K3OpEenRijMenu_4_0.png) | ||
![K3-Op-Een-Rij game version 4.0](Screenshots/K3OpEenRij_4_0.png) | ||
|
||
![K3-Op-Een-Rij game version 3.0](Screenshots/K3OpEenRij_3_0.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
#include "k3opeenrijnames.h" | ||
|
||
#include <cassert> | ||
#include <stdexcept> | ||
|
||
ribi::koer::BlackHairedGirl ribi::koer::GetNext( | ||
const BlackHairedGirl girl | ||
) noexcept | ||
{ | ||
switch (girl) { | ||
case BlackHairedGirl::kristel: return BlackHairedGirl::marthe; | ||
case BlackHairedGirl::marthe: return BlackHairedGirl::kristel; | ||
} | ||
assert(!"Should not get here"); | ||
throw std::logic_error("Unknown girl"); | ||
} | ||
|
||
ribi::koer::BlondeGirl ribi::koer::GetNext(const BlondeGirl girl) noexcept | ||
{ | ||
switch (girl) { | ||
case BlondeGirl::kathleen: return BlondeGirl::josje; | ||
case BlondeGirl::josje: return BlondeGirl::klaasje; | ||
case BlondeGirl::klaasje: return BlondeGirl::kathleen; | ||
} | ||
assert(!"Should not get here"); | ||
throw std::logic_error("Unknown girl"); | ||
|
||
} | ||
|
||
ribi::koer::RedHairedGirl ribi::koer::GetNext(const RedHairedGirl girl) noexcept | ||
{ | ||
switch (girl) { | ||
case RedHairedGirl::karen: return RedHairedGirl::hanne; | ||
case RedHairedGirl::hanne: return RedHairedGirl::karen; | ||
} | ||
assert(!"Should not get here"); | ||
throw std::logic_error("Unknown girl"); | ||
} | ||
|
||
std::string ribi::koer::ToStr(const BlackHairedGirl girl) noexcept | ||
{ | ||
switch (girl) { | ||
case BlackHairedGirl::kristel: return "Kristel"; | ||
case BlackHairedGirl::marthe: return "Marthe"; | ||
} | ||
assert(!"Should not get here"); | ||
throw std::logic_error("Unknown girl"); | ||
} | ||
|
||
std::string ribi::koer::ToStr(const BlondeGirl girl) noexcept | ||
{ | ||
switch (girl) { | ||
case BlondeGirl::kathleen: return "Kathleen"; | ||
case BlondeGirl::josje: return "Josje"; | ||
case BlondeGirl::klaasje: return "Klaasje"; | ||
} | ||
assert(!"Should not get here"); | ||
throw std::logic_error("Unknown girl"); | ||
} | ||
|
||
std::string ribi::koer::ToStr(const RedHairedGirl girl) noexcept | ||
{ | ||
switch (girl) { | ||
case RedHairedGirl::karen: return "Karen"; | ||
case RedHairedGirl::hanne: return "Hanne"; | ||
} | ||
assert(!"Should not get here"); | ||
throw std::logic_error("Unknown girl"); | ||
} | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef K3OPEENRIJNAMES_H | ||
#define K3OPEENRIJNAMES_H | ||
|
||
#include <string> | ||
|
||
namespace ribi { | ||
namespace koer { | ||
|
||
enum class BlackHairedGirl { kristel, marthe }; | ||
enum class BlondeGirl { kathleen, josje, klaasje }; | ||
enum class RedHairedGirl { karen, hanne }; | ||
|
||
BlackHairedGirl GetNext(const BlackHairedGirl girl) noexcept; | ||
BlondeGirl GetNext(const BlondeGirl girl) noexcept; | ||
RedHairedGirl GetNext(const RedHairedGirl girl) noexcept; | ||
|
||
std::string ToStr(const BlackHairedGirl girl) noexcept; | ||
std::string ToStr(const BlondeGirl girl) noexcept; | ||
std::string ToStr(const RedHairedGirl girl) noexcept; | ||
|
||
} //~namespace koer | ||
} //~namespace ribi | ||
|
||
|
||
#endif // K3OPEENRIJNAMES_H |
This file contains 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
This file contains 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
Oops, something went wrong.