Uploaded by widab49799

Culminating Game

advertisement
Start
Teams
generated
User inputs name, position
and team
Declare userName
userPosition, and
userTeam variables
User Inputs shooting, defense,
passing, dribbling stats
Schedule
Generated
The schedule will be
generated using an
array of all the teams
Season starts
Display fixtures
for week
User inputs p
to play next
game
Game
score
function
userTeamOvr
- Team 2
overall => 5
userTeamGoals
= rand(1,7)
Team 2 goals
= rand (0, 3)
userTeamOvr
- Team 2
overall == 0
userTeamGoals
= rand(0, 7)
Team 2 goals
= rand (0, 7)
userGoals and
userAssists =
rand(userTeamGoals)
userGoals and
userAssists =
rand(userTeamGoals)
User stats
generated
Training
function
Output match
results, league
table, and user
stats
Loops for
number of
games in
season
Season ends
Output league
winner, user
stats and
awards
Career end
Loops for
number of
seasons
Download