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
class Player | |
def functions() | |
def defining() | |
def players() | |
class Board | |
def functions() | |
def defining() | |
def the() | |
def board() |
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
def updateplayer(player,**modification): | |
global players | |
selected = players[player] | |
if "Location" in modification: | |
selected["Location"] = modification["Location"] | |
if modification["Location"] = 30: | |
selected["InJail"] = 1 | |
selected["Location"] = 10 | |
players[player] = selected | |
if "InJail" in modification: |
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
import random | |
from deap import base, creator, tools, algorithms | |
creator.create("FitnessMax", base.Fitness, weights=(1.0,)) | |
creator.create("Individual", list, fitness=creator.FitnessMax) | |
ind = creator.Individual([1, 0, 1, 1, 0]) | |
toolbox = base.Toolbox() | |
toolbox.register("attr_bool", random.randint, 0, 1) |
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
Status?v.localizedStrings.online:v.localizedStrings.userDefaultOnlineStatus,profileLink:"#",picUrl:vh(n.GamerPic),onlineIcon:h.assets.onlineIndicatorIcon,selectedBoxIcon:h.assets.selectedBoxIcon},f=r.generateHtml("searchedGamertagItem",u);uu.prepend(f);ki()}function ph(n){var i=t(),r;return n?(r=u.formatString(ie,u.locale()),f(r,{gamerTag:n}).then(function(n){return n&&n.IsValid?i.resolve(n):i.reject()}).done(function(n){n.IsValid?yh(n):li.css("display","block")}).fail(function(){li.css("display","block")}).always(function(){kr(!0)}),i.promise()):(i.reject(),i.promise())}function re(){li.css("display","none");it.hide();var i=dr(),t=it.filter(function(){return n(this).data("gamertag").toLowerCase()==i});if(t.length>0){uu.prepend(t);t.show();return}kr(!1);ph(i)}function kr(n){n?(ci.css("cursor","pointer"),ci.unbind("click").click(function(){return re(),!1})):(ci.css("cursor","auto"),ci.unbind("click"))}function dr(){return n.trim(ii.val()).toLowerCase()}function oi(){rt=it.filter(".selected").map(function(){ret |