Jabox has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Creating A mini typing game!
by karlgoethebier (Abbot) on Feb 25, 2014 at 18:36 UTC | |
|
Re: Creating A mini typing game!
by marto (Cardinal) on Feb 25, 2014 at 18:15 UTC | |
by Jabox (Sexton) on Feb 25, 2014 at 18:25 UTC | |
by marto (Cardinal) on Feb 25, 2014 at 21:27 UTC | |
|
Re: Creating A mini typing game!
by atcroft (Abbot) on Feb 26, 2014 at 07:44 UTC |