While loop looping when it shouldn't

I am using visual studio 2013 to create a game where a random number is generated when the program runs and the player has to guess the number. The program tells the user if their guess is too high or too low. When they guess the number correctly, the program should end... but it doesn't. It just keeps looping.

Here is the code:

// Number Game.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include <time.h>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
srand(time(NULL));
bool Play = true;
int Number = rand() % 100 + 1, Guess;

while (Play = true)
{
cout << "A random number from 1 to 100 has been generated. Can you guess it?: ";
cin >> Guess;

if (Guess > Number)
{
cout << "Too high!" << endl;
}

else if (Guess < Number)
{
cout << "Too low!" << endl;
}

else
{
cout << "You win!" << endl;
Play = false;
}
}
return 0;
}

Anyone have any ideas as to what i am doing wrong here?
I am still new to this language, so i am probably making a very obvious mistake.
wow, how did i miss that xD

Thanks!
Topic archived. No new replies allowed.