일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- if
- 연결리스트
- codecademy
- html5
- Polymorphism
- UE4
- html
- 코딩도장
- for
- Project
- 파이썬
- 영알남
- Bull
- 알고리즘
- cow
- cout
- C++
- std
- Java
- endl
- Unreal
- dictation
- 파이선
- font weight
- bool
- CSS
- Euler
- python
- unreal engine4
- Notting hill
- Today
- Total
목록Bull (3)
/* This is the console executable, that makes use of the BullCow classThis acts as the view in a MVC pattern, and is responsible for alluser interaction. For game logic see the FBullCowGame class.*/#pragma once#include #include #include "FBullCowGame.h" using FText = std::string;using int32 = int; void PrintIntro();void PlayGame();void PrintGameSummary();FText GetValidGuess();bool AskToPlayAgain..
#pragma once#include "FBullCowGame.h"#include #define TMap std::map using int32 = int; FBullCowGame::FBullCowGame() { Reset(); } int32 FBullCowGame::GetCurrentTry() const { return MyCurrentTry; }int32 FBullCowGame::GetHiddenWordLength() const{return MyHiddenWord.length();}bool FBullCowGame::IsGameWon() const{return bGameIsWon;} int32 FBullCowGame::GetMaxTries() const { TMap WordLengthToMaxTries{..
#pragma once#include 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 ..