Go Fish: Difference between revisions
Content added Content deleted
Line 476: | Line 476: | ||
return new-deck |
return new-deck |
||
] |
] |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
shuffle: function [deck [block!]] [deck: random deck] |
shuffle: function [deck [block!]] [deck: random deck] |
||
;------------- end of helper functions ----------------- |
;------------- end of helper functions ----------------- |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
transfer-cards: func [ |
transfer-cards: func [ |
||
Line 543: | Line 573: | ||
go-fish 1 thand |
go-fish 1 thand |
||
] |
] |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
] |
] |
||
Line 605: | Line 606: | ||
] |
] |
||
main: does [ |
|||
deck: shuffle make-deck |
deck: shuffle make-deck |
||
deal-cards 9 chand |
deal-cards 9 chand |
||
Line 618: | Line 619: | ||
] |
] |
||
main |
|||
demo |
|||
</lang> |
</lang> |
||