PYTHON GHOST GAME - made by: EvilClaus

 

from random import randint
print ('GhostGame')
feeling_brave = True
score = 0
while feeling_brave:
    ghost_door = randint(1, 3)
    print('Three doors ahead...')
    print('Behind one there is a ghost.')
    print('what door should be opend?')
    door = input('1,2 or 3?')
    door_num = int(door)
    if door_num == ghost_door:
        print('GHOST')
        feeling_brave = False
    else:
        print('No ghost!')
        print('you get to the next room.')
        score = score + 1
print('Run away!')
print('Game over! Your score is', score)

C++ GUESS THE NUMBER - made by: Chopto
 
 
#include <iostream>
using namespace std;
 
int main()
{
int a;
 
cout << "type in a number" << endl;
cin >> a;
 
if (a == 8)
{
cout << "8 is a cool number" << endl;
cout << "you win!";
}
else
{
cout  << "that's one awful number" << endl;
cout << "game over" << endl;
}
}