You can look at the solitaire demo to see how to use playing cards. 2010/2/17 Elmer Fittery <[email protected]>: > Here is my crude solution to my poker position problem. > > NB. create table with 10 positions > table =: i. 10 > > dealerPosition =: 3 > > dealerOrder =: (button +1) |. table > > NB. hard code that I am seated at seat 7 > mySeat =: 7 > > NB. specify what seats have no players > emptySeats =: 2 3 8 > > NB. remove non-playing players > players =: dealerOrder -. emptySeats > > NB. index of my position at table > my_index =: players i. mySeat > > NB. determine relative position to dealer > positionRelativeToDealer =: (my_index+1) - (#players) > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm >
-- Björn Helgason, Verkfræðingur Fornustekkum II 781 Hornafirði Po Box 127,801 Selfoss , t-póst: [email protected] gsm: +3546985532 sími: +3544781286 http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .-----------------------------------. ,' .\ / | Með léttri lund verður | ,--' _,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. | `-----------------------------------' | ) | (\_ _/) (`-. '--.) (='.'=) ♖♘♗♕♔♙ `. )----' (")_(") ☃☠ ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
