Jump to content




War! The Classic Card Game


  • You cannot reply to this topic
15 replies to this topic

#1 biggest yikes

  • Members
  • 573 posts

Posted 24 January 2014 - 09:13 AM

So, I have created a game called War, as in the card game, in Lua. It's mainly a text war, but its obsessive to play.
Here's how to play War if you don't know it yet. You place down a card (and the other person) and whoever has the highest card wins both cards. If they are the same, you are in a War. You place down 3 cards (double wars 6) and whoever wins now gets an extra 3 cards, plus the 1 that lost. If you get another war, you have a double war (you place another 3 cards down, and win 8 [or 7 I can't remember] who wins. At least in this version it is.)

Now to the good stuff! If I can I'll post all my screenshots I have (don't expect much; I don't really get how) I'll post em'.
If you want sound, on the right side on the computer put a note block with the sound you want it to play every session. Place a note block on the back of the computer and that will play every war.

Here's the download: pastebin get WEW0NKpY war
pastebin.com/WEW0NKpY
BUGS FIXED:
-Wars are ignored
-Generic sound is same as War sound
-Wars would add the start cards plus one, making when you get a war the person who wins that war wins the entire game
If it expires, tell me and I'll fix it ;)

OLD VERSIONS:
pastebin get TtedahBK war
http://pastebin.com/TtedahBK
pastebin get dCW1kKqW war
http://pastebin.com/dCW1kKqW



Sorry if its a bit small, the shots :P
Try clicking on them.

[attachment=1454:NormalThing.png]
[attachment=1453:WinWar.png]
[attachment=1451:AceWar.png]
[attachment=1450:DoubleWar.png]

Edited by minimite, 10 September 2014 - 11:42 PM.


#2 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 24 January 2014 - 10:05 AM

Did you make this on Grim's server? :P
Anyway, nice game. I remember playing this game growing up all the time. It never lost its charm.

#3 biggest yikes

  • Members
  • 573 posts

Posted 24 January 2014 - 03:05 PM

View PostLeGoldFish, on 24 January 2014 - 10:05 AM, said:

Did you make this on Grim's server? :P
Anyway, nice game. I remember playing this game growing up all the time. It never lost its charm.
I made about 1/4th of this game on Grim's server.
Most of it was on single-player, imported on the server.
And thanks! :D

Edited by minimite, 24 January 2014 - 07:15 PM.


#4 biggest yikes

  • Members
  • 573 posts

Posted 24 January 2014 - 07:15 PM

50 Views...I guess this must've been a popular game (kinda) then..

Edited by minimite, 24 January 2014 - 07:16 PM.


#5 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 30 January 2014 - 12:54 PM

Hmm.. This seems very interesting.
Maybe you should try to add some ascii art to it? Anyway, Good job! :D

#6 biggest yikes

  • Members
  • 573 posts

Posted 31 January 2014 - 04:10 PM

View PostHellkid98, on 30 January 2014 - 12:54 PM, said:

Hmm.. This seems very interesting.
Maybe you should try to add some ascii art to it? Anyway, Good job! :D
I don't know how to add ASCII or what to determine to make it.
Thanks however!

#7 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 22 February 2014 - 02:28 PM

Did you use math.random to generate the cards?
Also, you should factor putting two cards down when you go to war. ;)

#8 biggest yikes

  • Members
  • 573 posts

Posted 23 February 2014 - 03:20 PM

View PostLeGoldFish, on 22 February 2014 - 02:28 PM, said:

Did you use math.random to generate the cards?
Also, you should factor putting two cards down when you go to war. ;)
Of course I used math.random, what else?
By the way, Don't tell me that it's not random technically, because I know.
Also, I apologize, but I don't understand what you mean by 'you should factor putting two cards down when you go to war'.

#9 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 23 February 2014 - 03:43 PM

View Postminimite, on 23 February 2014 - 03:20 PM, said:

View PostLeGoldFish, on 22 February 2014 - 02:28 PM, said:

Did you use math.random to generate the cards?
Also, you should factor putting two cards down when you go to war. ;)
Of course I used math.random, what else?
By the way, Don't tell me that it's not random technically, because I know.
Also, I apologize, but I don't understand what you mean by 'you should factor putting two cards down when you go to war'.
They way /my/ family played was, when we had two of the same card, we put two face down to make it more interesting when it came to winning wars.

#10 biggest yikes

  • Members
  • 573 posts

Posted 24 February 2014 - 03:27 PM

View PostLeGoldFish, on 23 February 2014 - 03:43 PM, said:

View Postminimite, on 23 February 2014 - 03:20 PM, said:

View PostLeGoldFish, on 22 February 2014 - 02:28 PM, said:

Did you use math.random to generate the cards?
Also, you should factor putting two cards down when you go to war. ;)
Of course I used math.random, what else?
By the way, Don't tell me that it's not random technically, because I know.
Also, I apologize, but I don't understand what you mean by 'you should factor putting two cards down when you go to war'.
They way /my/ family played was, when we had two of the same card, we put two face down to make it more interesting when it came to winning wars.
That's a good idea. Now that I think about it, I'll add an option to effect that.
Keep in mind this is nowhere near the full thing, and even then, complete, so there's plenty good in that :)

#11 biggest yikes

  • Members
  • 573 posts

Posted 24 February 2014 - 03:48 PM

View Postminimite, on 24 February 2014 - 03:27 PM, said:

View PostLeGoldFish, on 23 February 2014 - 03:43 PM, said:

View Postminimite, on 23 February 2014 - 03:20 PM, said:

View PostLeGoldFish, on 22 February 2014 - 02:28 PM, said:

Did you use math.random to generate the cards?
Also, you should factor putting two cards down when you go to war. ;)
Of course I used math.random, what else?
By the way, Don't tell me that it's not random technically, because I know.
Also, I apologize, but I don't understand what you mean by 'you should factor putting two cards down when you go to war'.
They way /my/ family played was, when we had two of the same card, we put two face down to make it more interesting when it came to winning wars.
That's a good idea. Now that I think about it, I'll add an option to effect that.
Keep in mind this is nowhere near the full thing, and even then, complete, so there's plenty good in that :)
Updated to add that and local variables :D

#12 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 24 February 2014 - 03:50 PM

Why aren't the functions localized?
EDIT: Why not make the noteblock sides configurable. ;o

Edited by LeGoldFish, 24 February 2014 - 04:44 PM.


#13 biggest yikes

  • Members
  • 573 posts

Posted 24 February 2014 - 06:22 PM

View PostLeGoldFish, on 24 February 2014 - 03:50 PM, said:

Why aren't the functions localized?
EDIT: Why not make the noteblock sides configurable. ;o
The new update localized it.
And I guess I could do that..But it's getting pretty late. Will do that tomorrow :D

Edited by minimite, 24 February 2014 - 06:22 PM.


#14 crazyadam0

  • Members
  • 44 posts
  • LocationWashing a ton state USA, North America, Earth, The Universe, The Multiverse (If that exists)

Posted 24 February 2014 - 06:40 PM

This is pretty cool, and It's a really fun card game, but you don't really play the game, just watch the simulation go. It would be a little cooler if you could reduce the time between plays and make the user click a image of a deck or something? Some way to add user interaction would make it much more fun.

Edited by Enderbane, 24 February 2014 - 06:40 PM.


#15 Agoldfish

  • Members
  • 451 posts
  • LocationSome Fish Bowl in Ohio.

Posted 25 February 2014 - 09:31 AM

View Postminimite, on 24 February 2014 - 06:22 PM, said:

View PostLeGoldFish, on 24 February 2014 - 03:50 PM, said:

Why aren't the functions localized?
EDIT: Why not make the noteblock sides configurable. ;o
The new update localized it.
And I guess I could do that..But it's getting pretty late. Will do that tomorrow :D
You sure?
Spoiler


#16 biggest yikes

  • Members
  • 573 posts

Posted 26 February 2014 - 12:15 AM

View PostLeGoldFish, on 25 February 2014 - 09:31 AM, said:

View Postminimite, on 24 February 2014 - 06:22 PM, said:

View PostLeGoldFish, on 24 February 2014 - 03:50 PM, said:

Why aren't the functions localized?
EDIT: Why not make the noteblock sides configurable. ;o
The new update localized it.
And I guess I could do that..But it's getting pretty late. Will do that tomorrow :D
You sure?
Spoiler
I thought you meant the variables, sorry about that :P
I'll try (try? you mean do?) to fix that aswell as those configurable sides to the noteblocks.

View PostEnderbane, on 24 February 2014 - 06:40 PM, said:

This is pretty cool, and It's a really fun card game, but you don't really play the game, just watch the simulation go. It would be a little cooler if you could reduce the time between plays and make the user click a image of a deck or something? Some way to add user interaction would make it much more fun.
If you mean click the image, I clearly can't make an image, but I can make the user have to click on something to continue :)
I'll add that before I update it aswell.
EDIT: Updated with all the promised features! :)

Edited by minimite, 26 February 2014 - 12:50 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users