This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
static long long int positionsEvaluated = 0; | |
int inOrder(const int rack[10]) | |
{ | |
int i; | |
int last = 0; | |
for (i = 0; i < 10; i++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rack-O simulation | |
import random | |
class GreedyHeuristicPlayer(): | |
def getScore(self, rack): | |
return 1 | |
def choose(self, rack, newCard): | |
bestScore = self.getScore(rack) |
NewerOlder