inst/doc/Rwarrior.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

## ----setup--------------------------------------------------------------------
library(rwarrior)

## -----------------------------------------------------------------------------
level_readme(1)

## ----eval=FALSE---------------------------------------------------------------
#  AI <- function(warrior, memory) {
#        # Your code goes here, can ignore memory for early levels
#      }
#  warrior_name <- "Fisher" # A name for your warrior
#  
#  play_warrior(AI, warrior_name = warrior_name, level = 1)

## ----eval=FALSE---------------------------------------------------------------
#  play_epic(AI)

Try the rwarrior package in your browser

Any scripts or data that you put into this service are public.

rwarrior documentation built on Sept. 7, 2022, 9:06 a.m.