dimanche 31 décembre 2017

List sorted-Python card game

I have a card came that contains a list of cards in a players hand from top to bottom. And i need to check up to what point the cards list break from the order of small to large(from top to bottom).I am not able to use any sort of GUI's.

for example, cards in players hand: 23 24 12 5-check for the fifth element in the list that is properly sorted 4 3 2 1

Aucun commentaire:

Enregistrer un commentaire