项目作者: ahester57

项目描述 :
(Freestyle Javascript) An n-Dimensional random walk simulation.
高级语言: JavaScript
项目地址: git://github.com/ahester57/nDimensionalRedvsBlue.git
创建时间: 2017-09-19T05:11:56Z
项目社区:https://github.com/ahester57/nDimensionalRedvsBlue

开源协议:

下载


n-Dimensional Red vs Blue Game

Austin Hester

ahester57@gmail.com

University of Missouri - St. Louis, Computer Science

CS 4500

Keith Miller

The red marker starts at the lower-left corner ::= [0, ROWS-1, 0, ROWS-1, ...]

The blue markers starts at the opposite corner ::= [ROWS-1, 0, ROWS-1, ...]

The first to complete a random walk to the opponent’s home tile wins.
If a marker lands on an occupied tile, they are sent back to their home
location.

For a school project in which we must examine an independent variable’s effect
on a chosen dependent variable.

My independent variable: Number of dimensions, square grid locked at 4^(ndims)
My dependent variable: Number of moves the winner must take to win.

Each run simulates 10 games of each dimensions, 1-5

Or you can have a custom game:
Enter a number of dimensions: 2-5
Enter a number of rows: 2-8

See who wins.