News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Solitaire in assembly

Started by Magicle, February 05, 2010, 03:35:46 PM

Previous topic - Next topic

dedndave

i always generated the number randomly, testing to see if it is already present in the array
if it is - go back and pick another one - not very fast, i guess - lol

i guess it should be something like Hutch mentioned
you might pick both element indicies at random and swap

Magicle

Thanks for all the suggestions and methods, that was what I was looking for!  :U
@Dave, that's the way I was thinking of doing it....
@Hutch, I'll take a look, big thanks.


Slugsnack

To answer your question on language of choice, I would personally go with Java for ease of use of the graphics programming. On top of that an application like this would be well suited to an OOP design.

PBrennick

Here isy example of Solitaire writen in Java. It does not use cards.dll (overkill). It uses a GIF which contains all the components necessary to build any card. I forgot who showed me that but I use it all the time now; Cribbage for example.

Paul
The GeneSys Project is available from:
The Repository or My crappy website