mob/verb
test()
new card_handle(src,src)
deck()
world<<src.hand
mob/var/hand[]=new
card_handle
New(mob/player1,mob/player2)
world<<"lawl"
var/list/deck=new
for(var/obj/card/c)
deck+=c
world<<"added [c]"
while(player1.hand<8)
var/p=pick(deck)
deck-=p
player1.hand+=p
world<<"player one has recieved: [p]"
while(player2.hand<8)
var/p=pick(deck)
deck-=p
player2.hand+=p
world<<"player one has recieved: [p]"
//Now that all is set up, both players have 8 cards, we can begin\
our crazy eights game! Time to start up the turns.
turn_start(player1,player2)
////////////////////////////////////////////////////
proc
turn_start(mob/player1,mob/player2)
cards_on_screen(player1)
cards_on_screen(player2)
///////////////////////////////////////////////////
cards_on_screen(mob/player)
var/cards=player.hand.len
for(var/obj/card/i in player.hand)
while(cards)
cards--
i.screen_loc="[cards],1"
Problem description:
I decided to make a crazy eights card game, I wanted to mess around with lists. However I am unsure of how to run a datum. Is calling New a good way of starting one up? I seem to get errors attempting this.
EDIT: I do know what a datum is.
(some of the coding is still not complete)