Skip to content

Instantly share code, notes, and snippets.

@Azada123
Created June 29, 2018 10:44
Show Gist options
  • Save Azada123/09fdf9ce42280262edca8eec33a6b7f4 to your computer and use it in GitHub Desktop.
Save Azada123/09fdf9ce42280262edca8eec33a6b7f4 to your computer and use it in GitHub Desktop.
// 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