(self, playerInput)
| 885 | self.elements['HVisual'] = string |
| 886 | |
| 887 | def checkInput(self, playerInput): |
| 888 | if playerInput == '': |
| 889 | return {'valid':False,'entry':playerInput} |
| 890 | if playerInput.isnumeric(): |
| 891 | if int(playerInput)+(10*self.handPosition) < self.players[self.turn].getCardNum(): |
| 892 | return {'valid':True,'entry':str(int(playerInput)+(10*self.handPosition)),'type':'card'} |
| 893 | else: |
| 894 | self.elements['Error'] = '{} is not a card.'.format(playerInput) |
| 895 | return {'valid':False,'entry':playerInput} |
| 896 | else: |
| 897 | playerInput = playerInput.lower()[0] |
| 898 | if playerInput in ['<','>','u','d','p','q','s']: |
| 899 | return {'valid':True,'entry':playerInput} |
| 900 | else: |
| 901 | self.elements['Error'] = '{} is not a valid selection.'.format(playerInput) |
| 902 | return {'valid':False,'entry':playerInput} |
| 903 | |
| 904 | def checkColorInput(self, playerInput): |
| 905 | if playerInput == '': |
no test coverage detected