Struct binoxxo::field::Board [] [src]

pub struct Board { /* fields omitted */ }

A sqaure binoxxo board with a side length and its fields.

Methods

impl Board
[src]

[src]

Creates a new binoxxo board of side length size.

Panics

Panics if size is odd or 0.

[src]

Sets field at column x and row y to Empty.

Panics

Panics if x or y are out-of-bounds (larger or equal to get_size). Panics if field at given coordinates is already Empty.

[src]

Sets field at column x and row y to field.

Panics

Panics if x or y are out-of-bounds (larger or equal to get_size). Panics if field is Empty.

[src]

Returns field at column x and row y to field.

Panics

Panics if x or y are out-of-bounds (larger or equal to get_size).

[src]

Returns side length of board size.

Trait Implementations

impl Debug for Board
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Board
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl FromStr for Board
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for Board

impl Sync for Board