SudokuGame/general/extras.py

2 lines
76 B
Python

def bound_value(lower, val, higher):
return min(max(val, lower), higher)