To avoid myself yapping away I will get straight to the point!

Okay so File 1 and File 2.

File 1, Can I make a code that saves information just like a login but with two files in the same directory? So maybe something like User and password*optional* and while typing save while in a stage it will save the stage on the same section your user is so in file 2 will be user:pass:stagenumber. Basically file 1 talks with file 2 and next time logging in, it will start from that stage.

What my original idea is was. Stage 1, generates total of 5 random numbers and letters, not case sensitive.

Stage 2, x2 the amount

Stage 3, x3 case sensitive

etc etc

Once the stage is complete, it will give you the seconds it took for you to complete it. Adding rankings too. To complete it, you have to match the randomly generated code which it will recognise.

Also I heard Perl isn't much for games so if this isn't possible, I apologise in advance.

Yapping time! *you can ignore this part* Right now it's just the login situation I am wondering about, the rest I will try to figure out. I'm new to Perl and I find it easier to learn by doing random things and fixing my own errors than to read off the book *I just started and is still reading the Llama book*. I already made a super simple file that provides the list in the array and when selected it will provide a description of your choice :) So I want to make my studies more difficult and effective by fun which is creating a simple game or activity that motivates me even more to understand.


In reply to Creating A mini typing game! by Jabox

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.