Mind map
Celeb Dogs
Map content
Celeb Dogs
Play Game
- Show first user card
- get user to select a category
- select number of cards
- Once the user has selected the number of cards they are going to use
- Split the cards into 2 piles (The players and the computer)
- The first card in the players pile is displayed and the user chooses one of the 4 catagories
- the users category is then compared to the computers
- if the category chosen is exercise, intelligence or friendliness then the higher value wins the round
- if Drool is chosen then the lower value wins
- If the values are the same the player wins the round
- Whoever wins the round gets both cards and puts them at the bottom
- This is known when a display message appears explaining who won and what the result was
- the users category is then compared to the computers
- The first card in the players pile is displayed and the user chooses one of the 4 catagories
- Split the cards into 2 piles (The players and the computer)
- Once the user has selected the number of cards they are going to use
- Check category against first computer card
- User cannot choose a number that is :
- less than 4
- More than 30
- Or an odd number
- If any of these three options occur then:
- Display an appropriate message to the user
- Send the user back to the menu
- Display an appropriate message to the user
- If the player has all of the cards then they win
Card distributor
- r as random
- import random
- number = random.randint(0,29)
- Random Number for each catagory
- Random Number for each dog
- number = random.randint(0,29)
- import random
- r as random
Quit
- Provide a suitable message to the user
Create an array to assign the dog names to values
- Make values of Exercise, Intelligence, Friendliness and drool
Array
Menu
- play Game
- Quit
Names of dogs
Create and Open the saved file, dogs.txt
- Create dog cards
Generation
- Randomly generate a value for:
- Each catagory
- Each Dog
- Ranges
- Values have to be within these ranges
- Exercise 1 - 5
- Intelligent 1 - 100
- Friendly 1 -10
- Drool 1 -10
- Values have to be within these ranges
- Ranges
- Randomly generate a value for:
Winning
- if the player or the computer has all the cards then they have won the game
- A suitable message should be displayed saying who has won
- The program should then return the main menu
- Otherwise the next round starts and the winner chooses the category
- if the computer wins then the computer chooses a random category
- The game continues until the player or computer has won
- if the computer wins then the computer chooses a random category
- Otherwise the next round starts and the winner chooses the category
- if the player or the computer has all the cards then they have won the game
Information
- Description
- Mind Map on Celeb Dogs, created by benjamin pavitt on 10/09/2018.
- Created by
- benjamin pavitt
- Views
- 1
- Rating