Description Usage Arguments Value Examples

Return a vector of hexs which are empty, so the unit can move on them.

1 | ```
hexs_mobility(hex_id, mobility = NULL, units_data, dist_matrix_data)
``` |

`hex_id` |
id of hex where there is a unit |

`mobility` |
mobility of unit, default is NULL and then mobility is taken from units_data |

`units_data` |
dataset which contains information about units with its hexs |

`dist_matrix_data` |
distance matrix |

Vector with IDs of hexs where unit can move.

1 2 3 4 5 6 7 | ```
set.seed(123)
p1 <- draw_units(price_limit = 50, units_data = units)
p2 <- draw_units(price_limit = 50, units_data = units)
units_game <- draw_hexs(p1, p2)
hexs_mobility(hex_id = "ID9", units_data = units_game, dist_matrix_data = dist_matrix)
hexs_mobility(hex_id = "ID9", mobility = 2, units_data = units_game, dist_matrix_data = dist_matrix)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.