It is currently 21 Mar 2019, 19:56
   
Text Size

Archenemy+Planechase in your browser for offline games

General Discussion of the Intricacies

Moderator: CCGHQ Admins

Archenemy+Planechase in your browser for offline games

Postby mark » 09 May 2012, 19:54

Well, I don't know if this is the right forum for this, but I wrote simulators for planechase and archenemy card decks, which we use on a laptop/smartphone to enhance our offline Magicgames.
You can try them online or download them.

Basically I took the cardimages from magiccards.info, decklists from wherever and wrote some Javascript to have a deck of virtual cards in your browser where you can draw the top card, OCR'ed the text etc.

The planechase simulator could be a little bit different from the official rules, I did not play it yet to check.

http://mark.tvk.rwth-aachen.de/software/decksimulator/

Tell me what you think :-)
mark
 
Posts: 138
Joined: 28 Dec 2011, 11:32
Has thanked: 6 times
Been thanked: 11 times

Re: Archenemy+Planechase in your browser for offline games

Postby PilotPirx » 05 Jun 2012, 09:09

Super nice!

Check your mail...
e^iπ + 1 = 0
User avatar
PilotPirx
 
Posts: 41
Joined: 16 Dec 2009, 15:27
Has thanked: 1 time
Been thanked: 7 times

Re: Archenemy+Planechase in your browser for offline games

Postby laxika » 26 Jun 2012, 07:04

Very nice! Good job, I used it for lik 30mins. I'll test it in a match soon. :)
laxika
 
Posts: 14
Joined: 26 Mar 2012, 22:43
Has thanked: 0 time
Been thanked: 0 time

Re: Archenemy+Planechase in your browser for offline games

Postby mark » 24 Mar 2014, 23:14

I replaced the deck shuffling algorithm today because... well, it sucked :lol:

If you downloaded the packages, you should replace them (the main html file suffices).

So AE and PC now use the well known (or rather should better be well known) Fisher-Yates algorithm. It is simple, fast and unbiased, the old one was neither.

If you wrote software where shuffling is an issue and you implemented the shuffling yourself, better take a look at the FY algo :wink:
mark
 
Posts: 138
Joined: 28 Dec 2011, 11:32
Has thanked: 6 times
Been thanked: 11 times


Return to Magic Rules Engine Programming

Who is online

Users browsing this forum: No registered users and 2 guests


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 2 guests

Login Form