HOW CAN I MAKE A SCORING PROGRAM WHERE IN WHEN A GAME IS PLAYED THERE IS A PART WHERE THE TOP 3 PLAYERS WILL BE DISPLAYED, FOR EXAMPLE WHEN A PROGRAM IS RUNNING 3 PLAYERS WILL PLAY ONE AFTER ANOTHER, SO THE SCORES WILL BE STORED IN AN ARRAY OR VARIABLES. THE SCORE OF THE FIRST PLAYER WILL BE STORED IN THE FIRST VARIABLE INDICATING THAT HE'S TOP ONE. BUT AFTER THE SECOND PLAYER PLAYS THE PROGRAM WILL COMPARE THERE SCORES, AND IF PLAYER TWO'S SCORE IS GREATER THAN PLAYER ONE'S SCORE HE'LL BE THE TOP ONE AND PLAYER 1 WILL BE TOP 2 AND THE SAME WILL HAPPEN IN THE NEXT PLAYER BUT THE PROGRAM WILL COMPARE THE SCORES OF THE THREE.

EX.

IF THE RATING/ GRADING WILL BE 0-3, WHILE 0 IS THE LOWEST AND 3 THE HIGHEST.

IF PLAYER ONE GETS 1 POINT

____________________________________________

TOP SCORER
1.)PLAYER ONE
2.)
3.)

_________________________________________________
THEN PLAYER TWO PLAYS

PLAYER TWO GETS 2 POINTS

2>1 SO IT MEANS PLAYER TWO WILL BE THE NUMBER 1

______________________________________________

TOP SCORER
1.)PLAYER TWO
2.)PLAYER ONE
3.)

_______________________________
THEN PLAYER THREE PLAYS

PLAYER THREE GETS 3 POINTS

3>1 3> 2 SO IT MEANS PLAYER THREE WILL BE THE NUMBER 1

______________________________________________

TOP SCORER
1.)PLAYER THREE
2.)PLAYER TWO
3.)PLAYER ONE

HOW CAN I MAKE A SCORING PROGRAM WHERE IN WHEN A GAME IS PLAYED THERE IS A PART WHERE THE TOP 3 PLAYERS WILL BE DISPLAYED, FOR EXAMPLE WHEN A PROGRAM IS RUNNING 3 PLAYERS WILL PLAY ONE AFTER ANOTHER, SO THE SCORES WILL BE STORED IN AN ARRAY OR VARIABLES. THE SCORE OF THE FIRST PLAYER WILL BE STORED IN THE FIRST VARIABLE INDICATING THAT HE'S TOP ONE. BUT AFTER THE SECOND PLAYER PLAYS THE PROGRAM WILL COMPARE THERE SCORES, AND IF PLAYER TWO'S SCORE IS GREATER THAN PLAYER ONE'S SCORE HE'LL BE THE TOP ONE AND PLAYER 1 WILL BE TOP 2 AND THE SAME WILL HAPPEN IN THE NEXT PLAYER BUT THE PROGRAM WILL COMPARE THE SCORES OF THE THREE.

EX.

IF THE RATING/ GRADING WILL BE 0-3, WHILE 0 IS THE LOWEST AND 3 THE HIGHEST.

IF PLAYER ONE GETS 1 POINT

____________________________________________

TOP SCORER
1.)PLAYER ONE
2.)
3.)

_________________________________________________
THEN PLAYER TWO PLAYS

PLAYER TWO GETS 2 POINTS

2>1 SO IT MEANS PLAYER TWO WILL BE THE NUMBER 1

______________________________________________

TOP SCORER
1.)PLAYER TWO
2.)PLAYER ONE
3.)

_______________________________
THEN PLAYER THREE PLAYS

PLAYER THREE GETS 3 POINTS

3>1 3> 2 SO IT MEANS PLAYER THREE WILL BE THE NUMBER 1

______________________________________________

TOP SCORER
1.)PLAYER THREE
2.)PLAYER TWO
3.)PLAYER ONE

Capitalizing everything just makes people not want to help you. Where's your attempt at this?

You'd probably get better results if you made your whole post Bold, Italic, Underlined, and Bright Red. That way people know you mean business.

No, not bright red, bright yellow on a slightly darker yellow background.

For your scoring system problem though, I think it work if you made two parallel arrays, one containing scores, the other containing player names.

Run a swap or bubble sort (the only two easily implemented sorts I think) on the array containing the scores, but whenever you move an values in the scores array, move the same indexes in the array holding the names.

This article has been dead for over six months. Start a new discussion instead.