Flowchart
Year 11 Programming Project - Card Game (Section 4: winner)
Flowchart content
START
INPUT player1_card, player2_card
(parameters of subroutine)
IS player1_card[0] == player2_card[0]?
IS player1_card[1] > player2_card[1]?
YES
RETURN true
YES
RETURN false
NO
END
IS player1_card[0] == "red" AND player2_card[0] == "black"?
NO
RETURN true
YES
IS player1_card[0] == "red" AND player2_card[0] == "yellow"?
RETURN false
NO
YES
IS player1_card[0] == "black" AND player2_card[0] == "yellow"?
RETURN true
IS player1_card[0] == "black" AND player2_card[0] == "red"?
NO
YES
NO
RETURN false
YES
IS player1_card[0] == "yellow" AND player2_card[0] == "red"?
NO
RETURN true
YES
RETURN false
NO
Information
- Description
- Year 7 Computing Flowchart on Year 11 Programming Project - Card Game (Section 4: winner), created by Laurence Wakeford on 08/10/2021.
- Created by
- Laurence Wakeford
- Views
- 2
- Rating