This maze is generated using Wilson’s algorithm and then solved using breadth-first search. Compare to best-first search.
This file contains hidden or 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
from optparse import OptionParser | |
from itertools import groupby | |
from openopt import * | |
from FuncDesigner import * | |
maxSalary = 55000 | |
options.stackLimit = 4 | |
# constrain positions, salary, num players per team | |
constraints = lambda values: (values['salary'] <= maxSalary, values['rw'] == 2, values['lw'] == 2, values['c'] == 2, values['d'] == 2, values['g'] == 1, values["ANA"] < options.stackLimit, values["ARI"] < options.stackLimit, values["BOS"] < options.stackLimit, values["BUF"] < options.stackLimit, values["CGY"] < options.stackLimit, values["CAR"] < options.stackLimit, values["CHI"] < options.stackLimit, values["COL"] < options.stackLimit, values["CLM"] < options.stackLimit, values["DAL"] < options.stackLimit, values["DET"] < options.stackLimit, values["EDM"] < options.stackLimit, values["FLA"] < options.stackLimit, values["LA"] < options.stackLimit, values["MIN"] < options.stackLimit, values["MON"] < options.stackLimit, values["NAS"] < options.stackLimit, values["NJ"] < options.stackLimit, |
This file contains hidden or 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
<?php | |
class Test | |
{ | |
} | |
?> |
This file contains hidden or 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
{ | |
"ANA": { | |
"opp": "CBJ", | |
"over": 105.0, | |
"team": "ANA", | |
"overunder": 5.5, | |
"under": -125.0, | |
"moneyline": -165.0, | |
"goalie": "John Gibson" | |
}, |
This file contains hidden or 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
import java.awt.AWTException; | |
import java.awt.Robot; | |
import java.util.Random; | |
public class Main { | |
public static void main(String[] args) { | |
try { | |
Random r = new Random(); | |
Robot robot = new Robot(); | |
while (true) { |
This file contains hidden or 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
function var_dump(obj) { | |
var dump = ''; | |
for (var i in obj) | |
{ | |
out += i + " - " + obj[i] + "\n"; | |
} | |
var dump_area = document.createElement('dump_area'); | |
dump_area.innerHTML = dump; | |
document.body.appendChild(dump_area); | |
} |
This file contains hidden or 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
<?php | |
// | |
// For my Dell Inspiron 6400. I miss you. | |
// | |
for($k=0; $k<16; $k++) | |
{ | |
for($j=0; $j<4; $j++) | |
{ |