Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- #include <stdio.h>
- #include <string.h>
- #include <ctime>
- using namespace std;
- int main()
- {
- srand(time(NULL));
- int Words[] = {544567129, 543519329, 544698222, 2036427888, 543649385, 1801678674, 1632641068, 745694576, 1768117024, 1919906675, 1277176947, 1918990953, 1394617444, 1801678704, 1701336074, 1819176736, 1634148473, 1752393069, 1998616431, 1701995880, 1953459744, 1735289192, 1952541984, 1936876916, 2003783178, 1919510048, 1948284019, 1914725736, 1936026741, 1393101370, 1936943459, 544436847, 544503139, 1701863792, 1342769778, 1919250529, 1987011360, 544436837, 1801678706, 1867647242, 1663069027, 1752397170, 1814066021, 1918990953, 1275660900, 1918990953, 1869619300, 1852797801, 1884495987, 174809967, 1869632265, 1931504483, 1752392045, 1931506533, 1936943459, 175338095, 1768117001, 1919906675, 1701060723, 1768972643, 1702125940, 1752440947, 1768693861, 1685217658, 1766590730, 1685217658, 1952539936, 1634738291, 175269232, 1885425673, 1679848037, 1919972201, 1936029295, 1869632288, 151677795, 1668247635, 1635131499, 1769107312, 544433530, 1801678706, 1867647242, 1663069027, 1752397170, 1948283749, 1931502952, 1936943459, 175338095, 0};
- int Game[] = {544698190, 1162167628, 1414812741, 1397958484, 1344295763, 173621580, 1869572163, 1629513075, 1836412448, 544367970, 544370534, 1920298873, 1634039584, 980316016, 976292106, 1768117024, 1919906675, 839453299, 1632641082, 175269232, 540685065, 1801678674, 976488714, 2053721120, 174355041, 540685577, 1668247635, 805898859, 544175136, 1953069157, 10};
- int board = 0x59268A;
- cout << (char*)Words;
- int choice, comp;
- while(true)
- {
- cout << (char*)Game;
- cin >> choice;
- if(choice == 0)
- break;
- comp = rand() % 5;
- cout << "\tComputer: " << comp +1 << endl;
- choice -= 1;
- if(comp == choice)
- cout << "You Tied the Computer" << endl;
- else if(board & (1 << (choice * 5 + comp)))
- cout << "You Won" << endl;
- else
- cout << "You Lose" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement