If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

College help

Hello guys!
So i need to do this two problems for the college and im really, REALLY lost, i need some kind of help , for the moment teacher let us use Dreamweaver, so here are the problems:
1)Make a game that simulates the game "the one".
Function of the game:
Each turn, each player drops a dice several times and keep adding points until one of this two things happen: the player decides to stop dropping the dice and keeps the score achieved or dice hits 1 and the player loose his turn.
The player that gets 50 points first wins.

2)Make a program that simulates the game "guess the code".
Function of the game:
The program generates a code of four colours that the user must guess, for example: the code might be blue-green-blue-red, en each try the user will try to guess what is the composition and the position of the colours, for example if the code is red-red-green-blue and the user guess yellow-red-red-green the program must answer three right colours and one good position, the user have 10 attempts to win.
,
Sorry for my bad english and thank you.

Either you are looking for someone to code for you and this is not a homework project and I say that because both are a little too complex for a beginner or you are in class assing around and not paying attention.

With "the one" game and the "code" game, I assisted with an answer to some partial code that was part both.

STOP using $ prefix on JavaScript variable names...
Please remember to wrap any code you have in forum tags:- [CODE]...[/CODE] [HTML]...[/HTML] [PHP]...[/PHP]If you can't think outside the box, you will be trapped forever with no escape...

I'm not going to do the exercise for you (I don't write much JS anyway) but I will help you get started on the first one.

Firstly, as with any programming job, you need to analyse and document what functionality the program needs to have. You need this to be able to do the job, but it also acts as a design spec. which (in a real-life scenario) you would get agreed before you touched any code. That is unless you are given a detailed design spec. So what functionality is needed?

1. The ability to generate pseudo-random integers in the range 1 to 6, all of which are equally likely to arise.