Looking for computer sim advice

Started by RaspberryCheeseBlintz 5 replies 1,779 views Jump to latest

RaspberryCheeseBlintz
RaspberryCheeseBlintz
  • 38 posts
  • Threads: 5
Joined: Oct 22, 2011
October 22nd, 2011 at 3:14:07 PM #1
Just looking for info, as general or as specific as possible, about writing my own sims of card games.
dwheatley
dwheatley
  • 1,246 posts
  • Threads: 25
Joined: Nov 16, 2009
October 22nd, 2011 at 3:22:57 PM #2
If you just want to simulate, without any interfaces, you just need to know a programming language: Java, C++, MatLab.

Create arrays, vectors or matrices to represent your cards, and off you go. You can program in draw rules, use random numbers to draw cards, create arrays to hold the deck, hands, and then the results. Pretty easy with some practice
Wisdom is the quality that keeps you out of situations where you would otherwise need it
heather
heather
  • 437 posts
  • Threads: 8
Joined: Jun 12, 2011
October 22nd, 2011 at 8:38:24 PM #3
Desktop, mobile, Flash, client side or server side, PHP or ASP - what sort of sims are we talking about developing here? Do you want to test your own theories about existing games for yourself, or demo a new game for others? You're asking for some extremely broad information here.
RaspberryCheeseBlintz
RaspberryCheeseBlintz
  • 38 posts
  • Threads: 5
Joined: Oct 22, 2011
October 25th, 2011 at 4:28:24 PM #4
I was basically wondering if there were some common algorithms for the stuff in your second paragraph.
RaspberryCheeseBlintz
RaspberryCheeseBlintz
  • 38 posts
  • Threads: 5
Joined: Oct 22, 2011
October 25th, 2011 at 4:29:15 PM #5
Quote: heather

Desktop, mobile, Flash, client side or server side, PHP or ASP - what sort of sims are we talking about developing here? Do you want to test your own theories about existing games for yourself, or demo a new game for others? You're asking for some extremely broad information here.



Desktop for "my own theories".
dwheatley
dwheatley
  • 1,246 posts
  • Threads: 25
Joined: Nov 16, 2009
October 25th, 2011 at 5:13:47 PM #6
I simulated a baccarat deck by creating a simple [1x13] array that held the number of cards left to deal from an 8 deck shoe. So, it started as 13 cells of the number 32. Then I pull cards randomly from it, updating the array as I go.

Program in the draw rules into another table, and you have a baccarat simulator. Track results in another table. Make a big for loop for each hand in a shoe, and a big for loop for each shoe. I think lots of people would do it this way, but it's not like there are open source algorithms for doing this. It's so easy to code if you have the programming knowledge.

There are people on this site who might do the work for you; some for free, others for a fee.
Wisdom is the quality that keeps you out of situations where you would otherwise need it

Join the discussion

Log in or create a free account to reply to this thread.

  • Jump to: