1. New to the forums? Check out our Mentorship Program!
    Our mentors will answer your questions and help you become a part of the community!
  2. Welcome to Smogon Forums! Please take a minute to read the rules.
Paperfairy
Last Activity:
Jun 26, 2013
Joined:
Dec 20, 2004
Messages:
231
Trophy Points:
0

Followers 1

Birthday:
Mar 17, 1992 (Age: 22)
Location:
Outside your window.... your bedsheets need fixing
    1. jumpluff
      jumpluff
      Happy birthday!
    2. Zacchaeus
      Zacchaeus
      Happy birthday
    3. Zarel
      Zarel
      Well, the client and server of my simulator are written in JavaScript, mostly, but there's also the usual HTML/CSS/jQuery, Node.js and socket.io in the backend, and a little bit of PHP in some places.

      A TCG simulator is a pretty huge undertaking. You might want to practice with making some easier card games. Say, Solitaire - make a Web-based copy of that game that comes with Windows.

      Your deck is going to be an array. There are a lot of ways to represent cards. You could number them 1 to 52 and store them as numbers, or you could use strings like "3h" "5d" "Kc".

      To put cards wherever you want on the screen, you'll need to use CSS's "position:absolute". Read up on that if you're not familiar with it. You'll probably also want jQuery's "animate()" to animate them and make them fly around as you click on them.

      I hope that's enough advice for you to get started. Feel free to ask me if you get stuck. Good luck!
    4. Zarel
      Zarel
      Server-side is a good place to go next. PHP is what I learned (even before JavaScript) and it used to be the most popular, but it has lots of flaws. On the other hand, it's really easy to get into.

      I honestly don't know what to recommend. Python and Django seem popular, as does Ruby on Rails. Choose what you like.

      Pick a goal. Work towards that goal. Repeat. That's how you learn, really.

      And make that goal feasible. I made a replay player before a simulator. That way, I could do the whole project one step at a time, and it turned out to be much better than trying to build a simulator from scratch.
    5. Zarel
      Zarel
      You can just ask me here...
    6. afterburn
      afterburn
      np man, use it all you want lol :P
    7. STEELDRAGON
      STEELDRAGON
      Happy birthday man!
    8. Lady Salamence
      Lady Salamence
      Happy Birthday.
    9. cantab
      cantab
      I've never had any trouble with Java on Linux. What is the problem you're having?
  • Loading...
  • Loading...
  • Loading...
  • Signature


    [00:46] Vineon: hi paperfairy, old founder member of smogon

    “Pokémon Grand Central Station—for all your battling desires!”

    About

    Birthday:
    Mar 17, 1992 (Age: 22)
    Location:
    Outside your window.... your bedsheets need fixing
    DP Friend Code:
    3394 0060 2246
  • Loading...