MTG simulator for calc
#1
Posted 10 December 2002 - 02:20 AM
thanks.
#2
Posted 10 December 2002 - 04:16 AM
Just a few thoughts, would be a fun game though.
#3
Posted 10 December 2002 - 06:05 AM
Be explain it to me! I'm interested in.
bye
rstweb
#4
Posted 10 December 2002 - 01:39 PM
It needn't be too big, but ofcourse, taken the fact that any variable on any card will take 9 bytes (in a list), it will naturally occupy some space. To work around this, I suggest you store the deck data in basic files, as list/matrix declerations, and load them on startup (each variable will take less space in ascii than stored in casio variable format)That would be interesting, but who would you play against? head-to-head on the same calc? and while I don't doubt it's possible, it will be a HUGE basic program simply due to the amount of cards that are out now. And on top of that, card games on the casios are always a little tricky because of making a subroutine to randomly distribute cards, but most card games only use a normal deck of cards (52, 13x of each color), so the randomizer of the cards is possible. Not totally sure how you could do that with Magic cards without repeats in the cards.
Just a few thoughts, would be a fun game though.
randomizing cards in basic is quite easy (if the number of cards is less than 256)
fill one or more lists with the card values, fill another list with random numbers, and sort the lists using the random list as the base list
however, for more than 255 cards (stupid casio) you'll have to sneak your way around this, writing a random sort algorithm in basic.. which will be extremely slow
you could ofcourse have predefined decks with no more than 255 cards.. that should work..
anyway, good luck
#5
Posted 10 December 2002 - 08:43 PM
http://www.magicthegathering.com
They make a lot of fuss around it. Lots of products.
#6
Posted 11 December 2002 - 12:11 AM
1) A chageable card list (about 200 presets) which you can edit and add to at will.
2) It would have to be two players, no comp, Ive tried making an AI to play aginst me but it just wont work in BASIC.
3) A random deck generator for playing aginst the computer (AKA: yourself playing both sides).
4) 5 Deck save slots (a 100x5 matrix)
5) each card would be numerically sorted and the prog would locate the description and stats for each card when needed
6) There would be almost no built in rules, the game is so complex it would be vertually impossible
7) This is the current format for a single card:
if o=(card number)
then {(card number), (card type), (card color), (colorless cost), (white cost), (blue cost), (black cost), (green cost), (red cost), (X position), (Y position), (Play index), (power), (toughness)}->List 3
if r=2
then "Card Name"
""
"Card Type/Creature SubType"
""
"Card Text"
IfEnd
IfEnd
As you can see it is very basic, the game itself doesn't know what your card does, you have to take care of that yourself. On the plus side this format makes the game able to accept just about every card ever made (except for some of the weird ones), and even cards you make up.
Basically the program will act like a bord game, it provides you with rules, a space to play, and the peices to play with, but it wont know or care if you cheat.
For those of you who play magic, you can input your own decks (up to 100 cards per deck) and practice stratgies wherever you go without the inconvieniance of lugging arround your cards (also, you could try out new ideas before buying the cards), for those of you who dont have cards of your own but are interested in the game this would provide an exelent way to play without spending money on the cards (if you wanted to get more cards there are hundreds of spioler lists on-line that you could get them from).
The idea behind this game was to make it as small as posible while still functional, I still dont know if its going to work like I think it will, Ive tried this before and I always run into problems that the calc just cant get arround, but that was when I was still trying to incorperate an AI capable of competently playing aginst you... Hopefully this will turn out better.
Anyway please post any ideas about this here, I will try to keep a constant update of my progress (or lack there of) here.
#7
Posted 11 December 2002 - 04:23 AM
#8
Posted 11 December 2002 - 04:30 AM
see what I mean?
by the way here is a screen shot of the play field so far: (next post)
#10
Posted 11 December 2002 - 05:34 AM
CrimsonCasio, you are not supposed to post like this.
Next time use the EDIT function, and edit your own post. Ok?
#11
Posted 11 December 2002 - 12:24 PM
#12
Posted 11 December 2002 - 05:42 PM
#13
Posted 11 December 2002 - 07:04 PM
maybe I'm wrong though, like I said, been a LONG time since I've played the real thing.
#14
Posted 11 December 2002 - 07:47 PM
Also I am working on a few programs that will generate BASIC code for decks, cards, so on... that way anybody will be able to make there own modifications to the game.
#15
Posted 12 December 2002 - 08:04 PM
-----
never mind, I found a way to do it, I but a single " in a label (not visible) then just used that whenever I needed to. however if there is a better way then please tell me.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users