Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ challenge

Name: Anonymous 2012-11-04 14:51

Make/show a simple snake game in plain C!

Name: Anonymous 2012-11-06 5:05

// simple snake game in c

#include <iostream>
#include <string>
using namespace std;

void main() {
  string input;
  cout << "You are ambushed by a snake! What will you do?";
  getline(cin, input);
  if(input == "kill snake") {
    cout << "You win!";
  }
  else {
    cout << "The snake bites you! You are dead.";
  }
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List