GoConqr has a new look! Let us know what you think.

Flowchart

Year 11 Programming Project - Card Game (Section 4: winner)

Laurence Wakeford Computing Year 7 English

Flowchart content

  1. START

  2. INPUT player1_card, player2_card

    (parameters of subroutine)

  3. IS player1_card[0] == player2_card[0]?

  4. IS player1_card[1] > player2_card[1]?

  5. YES

  6. RETURN true

  7. YES

  8. RETURN false

  9. NO

  10. END

  11. IS player1_card[0] == "red" AND player2_card[0] == "black"?

  12. NO

  13. RETURN true

  14. YES

  15. IS player1_card[0] == "red" AND player2_card[0] == "yellow"?

  16. RETURN false

  17. NO

  18. YES

  19. IS player1_card[0] == "black" AND player2_card[0] == "yellow"?

  20. RETURN true

  21. IS player1_card[0] == "black" AND player2_card[0] == "red"?

  22. NO

  23. YES

  24. NO

  25. RETURN false

  26. YES

  27. IS player1_card[0] == "yellow" AND player2_card[0] == "red"?

  28. NO

  29. RETURN true

  30. YES

  31. RETURN false

  32. 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.
Views
2
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?