Tuesday, January 16, 2007

I woke up today when class was starting. Oops.

Yesterday, my friends and I were up all night playing board games. We played a 9.5 hour game of Axis & Allies, and then directly after that we played a 5.5 hour game of Risk 2210 A.D.

Needless to say, we were all very tired of strategy board games by the end. =)

Edit:
Check out my amazing program! Coooooool.
#include <stdio.h>
#include <conio.h>
#include <ctype.h>

void main(void)
{
char szWhatever[25];
char szKey;
int iRobot = 0;

szKey = getche();

while (szKey != '\r' )
{
szWhatever[iRobot] = szKey;
iRobot++;
szKey = getche();
}

szWhatever[iRobot] = '\0';
printf("\n\n=========\nThe characters you entered make up the following string:\n%s", szWhatever);


scanf("\n\n\n\nPress enter to end program.%d", iRobot++);

}

2 comments:

Unknown said...

dude thats nothing, i have to program a game of blackjack:

code fight!!!
...
int counter=0,counterp=0,counterd=0;
player[counterp]=wDeck[counter];
printf("You were dealt the %5s of %-8s\n", player[counterp].face, player[counterp].suit);
counterp++;counter++;
dealer[counterd]=wDeck[counter];
printf("The dealer was dealt a face down card.\n");
counterd++;counter++;
player[counterp]=wDeck[counter];
printf("You were dealt the %5s of %-8s\n", player[counterp].face, player[counterp].suit);
counterp++;counter++;
dealer[counterd]=wDeck[counter];
printf("The dealer was dealt the %5s of %-8s\n", dealer[counterd].face, dealer[counterd].suit);
counterd++;counter++;
...
take that

Sir Brian The Manly said...

Hahaha, nice.