CodeIgniter Forums
simple game help! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: simple game help! (/showthread.php?tid=1855)



simple game help! - El Forum - 07-01-2007

[eluser]Unknown[/eluser]
Hi Guys,

I want to make a simple card game in CI. IN the Uk we have somehting called top trumps where basically you have a deck of cards. Each cards have attributes like speed , strenght.

The person then chooses an attribute if his is higher than the opponent they win that card.

I want to do this in CI.

I have the basic system pulling 1 random card from a dbase for the player and for the computer then comparing the values.

Im stumped as i want to be able to have each player assigned a number of cards that are rotated.

Any thoughts on how i shoudl go about this would i store all the card ids in a session for each user?? I want to also tally points for as well..

Any ideas befor ei start coding with a failed foundation of the game.

Id like to eventually make this multiplayer but again have no idea where to start!?


gmunk


simple game help! - El Forum - 07-01-2007

[eluser]Unknown[/eluser]
http://www.bbc.co.uk/eastenders/fun_games/trumps/

exactly waht i want to do!