일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- Java
- 연결리스트
- for
- C++
- 코딩도장
- endl
- dictation
- codecademy
- Unreal
- Project
- html
- 파이선
- Bull
- Polymorphism
- html5
- Notting hill
- python
- unreal engine4
- 파이썬
- UE4
- cow
- if
- font weight
- cout
- Euler
- std
- 영알남
- bool
- CSS
- 알고리즘
- Today
- Total
BullCowGame - FBullCowGame.h 본문
#pragma once
#include <string>
using FString = std::string;
using int32 = int;
struct FBullCowCount {
int32 Bulls = 0;
int32 Cows = 0;
};
enum class EWordStatus
{ Invalid_Status,
OK,
Not_Isogram,
Wrong_Length,
Not_Lowercase
};
class FBullCowGame {
public:
FBullCowGame(); // constructor
int32 GetMaxTries() const;
int32 GetCurrentTry() const;
int32 GetHiddenWordLength() const;
bool IsGameWon() const;
void Reset(); // TODO make a more rich return value.
EWordStatus CheckGuessValidity(FString) const;
FBullCowCount SubmitValidGuess(FString);
// ^^ Please try and ignore this and focus on the interface above ^^
private:
// see constructor for initialisation
int32 MyCurrentTry;
int32 MyMaxTries;
FString MyHiddenWord;
bool bGameIsWon;
bool IsIsogram(FString) const;
bool IsLowercase(FString) const;
};
'Programming > 기타 언어들' 카테고리의 다른 글
BullCowGame - main.cpp (0) | 2017.07.18 |
---|---|
BullCowGame - FBullCowGame.cpp (0) | 2017.07.18 |
콜리전 반응과 충돌 이벤트 조건 (0) | 2017.07.18 |
ATriggerVolume VS에 안뜨는경우 (0) | 2017.07.17 |
단축키 (0) | 2017.05.24 |