Skip to content

Instantly share code, notes, and snippets.

View erseco's full-sized avatar
💭
dG9udG8gZWwgcXVlIGxvIGxlYQ==

Ernesto Serrano erseco

💭
dG9udG8gZWwgcXVlIGxvIGxlYQ==
View GitHub Profile
actions <- c("N", "S", "E", "W")
x <- 1:4
y <- 1:3
rewards <- matrix(rep(0, 12), nrow=3)
rewards[2, 2] <- NA
rewards[1, 4] <- 1
rewards[2, 4] <- -1