Created
June 29, 2018 10:44
-
-
Save Azada123/09fdf9ce42280262edca8eec33a6b7f4 to your computer and use it in GitHub Desktop.
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
// BullCowGame.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include <iostream> | |
#include <string> | |
int main() | |
{ | |
constexpr int WORD_LENGTH = 5; | |
// Introduce the game | |
std::cout << "Welcome to Bulls and Cows, A fun wordgame." << std::endl; | |
std::cout << "Can you guess the " << WORD_LENGTH << " letter isogram I´m thinking of?" << std::endl; | |
// Get a guess from the player | |
std::string Guess = ""; | |
std::cout << "Enter your guess ? "; | |
std::cin >> Guess; | |
// Repeat the guess back to them | |
std::cout << "Your guess is " << Guess << std::endl; | |
return 0; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment