View Full Version : Small projects to start with

05-31-2011, 08:22 AM
Here is a couple of small project which should be done for training. If you fail doing them, try something easier or read some documentation. I'm willing also to help you with some concept (in PM or yet better in chat) but will not do them for you!

Create a page which ask what's your name, once you submit it will show "Hello " + your name.
Create a page which ask you to guess a number between 0-100 and which will answer you "bigger", "smaller" or correct. For this the script must remember somehow the number randomly picked, so you may start with a first version with a static number.
Create a page which let you show a list of names out of a database. So create a table, fill in some data, and then display it.
Improve the previous project display page with an add, delete and update of the rows.
Create and hangman game.
Create a login / register pages. Login must control the match of 2 passwords, check if this username already exists etc. If the registration fails it must return to the registration, keep the fields filled and display an error message. The login must say "unknown username or password" if either the password or the username are wrong.
Create a mini game with 2 kind of accounts, one admin, the second the player, the admin shall be able to create new "events" which are displayed to the player like "you gained $x gold", where $x will be replaced by a random number, the player will see those messages but will not do much more.

If you need more projects let me know but I believe those shall be enough to train in most of the areas which are required to create a web game. As said, if you fail at those, you will hardly succeed to create a web game, so doing them is a good training.

05-31-2011, 08:49 AM
Nice list Alain, I can see many getting to no.5 and then getting stuck.

05-31-2011, 09:32 AM
You mean the hangman is too hard?

05-31-2011, 09:34 AM
Not saying too hard. Just needs a bit more structure and logic than the others. Depends on how you wish it to turn out.

05-31-2011, 09:36 AM
well the hangman has been described in one of my articles... so should not be too hard

05-31-2011, 09:49 AM
I'll have a go at all of them, 7 will probaly take a while and hangman thats is going to fail. lol :)
Thanks for the list i've been looking for something to do for ages.

05-31-2011, 10:58 AM
The hangman.. I dont think id be able to do yet lol All else I already have either done.. Or know for sure how to do :)

But nice list!

05-31-2011, 11:58 AM
The hangman is really not difficult and all intermediate PHP coder if not new coders should manage to do it.
Check this article it should give you enough ideas:

05-31-2011, 12:24 PM
Hangman is only made complex as people try, and over think it by using a database to store the words, and a request to call a page, and grab it (if that makes sense). People get themselves lost in over thinking.

05-31-2011, 12:49 PM
Well thats what I was getting at didnt know you would both give so much away :D

05-31-2011, 01:12 PM
If you're doing what I just described for a basic game... you're also over thinking it. :p