Skip to content

ZvikaZ/BPGP-wumpus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RUNNING

  • mvn clean package
  • and now, either run.sh, or run.bat, according to OS

GRAMMAR

<start> ::= <bt> <more-bts>
<more-bts> ::= <bt> <more-bts> | <bt>

<bt> ::= ctx.bthread(<name>, "<query>", function (entity) {
    while(true) {
        <request_plan>
    }
})

<name> ::= "arbitrary string"
<query> ::= Cell.NearVisited_NoGold | Cell.NearUnvisitedNoDanger_NoGold | Cell.NearVisited_NoGold | Cell.UnVisitedSafeToVisit | Cell.UnVisitedPossibleDangerRoute

<request_plan> ::= sync({request: Event("Plan", {plan: <planner>}), waitFor: ContextChanged}, <prio_func>)
<planner> ::= createPlanTo(entity)
<prio_func> ::= <prio> | <prio> + manhattanDistanceFromPlayer(entity) | <prio> - manhattanDistanceFromPlayer(entity)
<prio> ::= 50 | 51 | ... | 69 | 70

OLD TODOS

NEXT

  • improve grammar
  • geInd.printIndividualForHumans: print also generated code
  • sensible initialization
  • use logging, and 'fatal' instead of exit

LATER

  • stats: print for ind if mutated
  • stats: elite - print parent
  • bpjs verification?
  • coevolution of both sides
  • play against preknown good program
  • report breedthreads bug
  • some explanations in this file...
  • clean ecj warnings
  • unit tests?
  • parallelize with ECJ ch. 6
  • better termination?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published