• Forum
  • Lounge
  • its devonrevenge's birthday we had bette

 
its devonrevenge's birthday we had better code him something good or we are worthless people

Pages: 123
Aug 9, 2013 at 5:30am
closed account (Dy7SLyTq)
there was talk of a game called Devon's Revenge
Aug 9, 2013 at 5:38am
ah yes, my suggestion

For some reason the name reminds of that old atari game called custer's revenge i believe (i wouldnt look that up )
Last edited on Aug 9, 2013 at 5:44am
Aug 9, 2013 at 7:17am
Revenge on the world because he didn't get cake.
Aug 9, 2013 at 10:35am
YES :D

EDIT: I looked up Devon's revenge and Custers revenge, one is gay erotica novel the other is native american girl rape game :/
Last edited on Aug 9, 2013 at 10:39am
Aug 9, 2013 at 2:07pm
closed account (Dy7SLyTq)
well you have to pick one of those two devon
Aug 9, 2013 at 2:55pm
Why not just combine the two?
Aug 9, 2013 at 4:59pm
Its my birthday you have to surprise me .
Last edited on Aug 9, 2013 at 5:00pm
Aug 9, 2013 at 5:13pm
On the 17th I'll surprise you by doing the same thing I do everyday. Absolutely nothing.
Aug 9, 2013 at 5:22pm
BHXSpecter wrote:
On the 17th I'll surprise you by doing the same thing I do everyday. Absolutely nothing.


the secret to no success.
Aug 9, 2013 at 7:26pm
You had better be working on it.
Aug 9, 2013 at 11:50pm
Alright. Here is your birthday gift.
1
2
3
4
int main()
{
      return 0;
}


There.
Aug 9, 2013 at 11:59pm
closed account (N36fSL3A)
Damn, BHX why didn't you do this?
1
2
3
4
Present* present()
{
    return NULL;
}
Last edited on Aug 10, 2013 at 12:00am
Aug 10, 2013 at 5:23am
closed account (18hRX9L8)
Devon try this Tic Tac Toe game (coded in Python (Tk)).
There is currently one way to beat it (working on that).

Link: http://usandfriends.x10.mx/TicTacToePU.zip
(Run ~HOME/Production Unit/Tkinter.exe)
Last edited on Aug 10, 2013 at 5:24am
Aug 10, 2013 at 9:17am
1
2
3
4
5
6
7
8
9
10
11
if (member_of_cplusplus.present == true)
{
    allowed_life[next_member] = member_of_cplusplus.name;
    nextmember++;
}

else
{
    death_list[next_member] = member_of_cplusplus.name;
    nextmember++;
}
Aug 10, 2013 at 2:09pm
Hate to call you out on this devon but isn't
member_of_cplusplus.present == true

a bit redundant?
Aug 10, 2013 at 4:52pm
closed account (Dy7SLyTq)
no because the member could be off at testing. it should be in a while loop
Aug 10, 2013 at 6:56pm
Lumpkin wrote:
Damn, BHX why didn't you do this?

Because that would have took more effort to think of than I had cared to put into it.

@DTSCode
I think he means, if you can check to see it the value is true, you should be able to just say if(member_of_cplusplus.present){}else{} because if present is false then it would fail and run the else code block.


1
2
3
4
5
6
7
8
if(true)
{
      // run if condition is true
}
else
{
      // run if condition is false
}

Doing a while loop would make it a little of a pain as you would have to enter and exit it per member. If a member isn't present the while loop would exit, but could be only an element or two into the member list, a while loop wouldn't be the right choice in this example.
Last edited on Aug 10, 2013 at 7:03pm by closed account z6A9GNh0
Aug 10, 2013 at 7:22pm
closed account (Dy7SLyTq)
but then it would only test one member
Aug 10, 2013 at 7:24pm
closed account (N36fSL3A)
Isn't that the point?
Aug 10, 2013 at 7:45pm
DTSCode wrote:
but then it would only test one member

You could put the if/else block in a while loop. Using your method of a while loop would only test up until it ran into a member that wasn't here. For example, if Albatross, Disch, and you were the first three in the list and Albatross didn't bring a present it would evaluate to false and not bother reading Disch or you. So you would have to make a vector to hold the list of members. Then just an example (not actual code).
1
2
3
4
5
6
vector<string> list;
while(!list.end())
{
    if(...)
    esle{....}
}

Just an example, so I don't know if it would work
Pages: 123