def CPUdrop():
	""" CPU drops his dice.
		The algorithm is following:
		guess the next number in dice (randomly)
		and drop dice again to increase score
		if you want to cheat, put "+1" somewhere here ;-)
	"""
	global CPUfinished, manSum, compSum, debug
	if (not CPUfinished):	# already refused
		NeedPoints = 17 - compSum	# how much we need?
		if (dice() <= NeedPoints):	# probability is well today
			compSum += dice() # dice() is called twice, should return different values
			if debug:
				print "CPU played. His points: ", compSum
		else:	# too big score
			CPUfinished = True	# enough points
			if debug:
				print "CPU refused. His points: ", compSum
 CPU drops his dice.
		The algorithm is following:
		guess the next number in dice (randomly)
		and drop dice again to increase score
		if you want to cheat, put "+1" somewhere here ;-)
	
recipes/Python/410172_Primitive_game/recipe-410172.py