Skip to content

Commit

Permalink
did random shit
Browse files Browse the repository at this point in the history
  • Loading branch information
ardauzan committed Dec 27, 2024
1 parent e534d88 commit 72d6aab
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/gol.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
////
//// Module: gol (Main)
//// API:
//// * None
//// - main() -> Nil
//// Internal:
//// * None

Expand Down
3 changes: 1 addition & 2 deletions src/neighbourhoods.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ pub type Neighbourhoods =

/// Get the neighbourhoods of a grid.
pub fn get(grid: gri.Grid) -> Neighbourhoods {
let transient_grid = gri.make_transient(grid)
get_inner(transient_grid, transient_grid, [])
get_inner(gri.make_proper(grid), gri.make_transient(grid), [])
}

// Private
Expand Down
1 change: 1 addition & 0 deletions src/rule.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//// Module: rule
//// API:
//// - Rule
//// - new() -> Rule
//// - add_case(Rule, Neighbourhood, Cell) -> Rule
//// - apply(Rule, Neighbourhood) -> Cell
//// Internal:
Expand Down
7 changes: 6 additions & 1 deletion test/cell_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
////
//// Module: cell_test
//// API:
//// * None
//// - main() -> Nil
//// - new_test() -> Nil
//// - is_alive_test() -> Nil
//// - is_dead_test() -> Nil
//// - toggle_test() -> Nil
//// - get_location_test() -> Nil
//// Internal:
//// * None

Expand Down
2 changes: 1 addition & 1 deletion test/definitions_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
////
//// Module: definitions_test
//// API:
//// * None
//// - main() -> Nil
//// Internal:
//// * None

Expand Down
2 changes: 1 addition & 1 deletion test/gol_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
////
//// Module: gol_test
//// API:
//// * None
//// - main() -> Nil
//// Internal:
//// * None

Expand Down
9 changes: 8 additions & 1 deletion test/grid_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
////
//// Module: grid_test
//// API:
//// * None
//// - main() -> Nil
//// - new_test() -> Nil
//// - make_proper_test() -> Nil
//// - make_transient_test() -> Nil
//// - add_test() -> Nil
//// - get_test() -> Nil
//// - remove_at_location_test() -> Nil
//// - get_neighbours_test() -> Nil
//// Internal:
//// * None

Expand Down
4 changes: 3 additions & 1 deletion test/lib_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
////
//// Module: lib_test
//// API:
//// * None
//// - main() -> Nil
//// - add_unique_test() -> Nil
//// - remove_test() -> Nil
//// Internal:
//// * None

Expand Down
5 changes: 4 additions & 1 deletion test/location_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
////
//// Module: location_test
//// API:
//// * None
//// - main() -> Nil
//// - new_test() -> Nil
//// - get_x_test() -> Nil
//// - get_y_test() -> Nil
//// Internal:
//// * None

Expand Down
3 changes: 2 additions & 1 deletion test/neighbourhood_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
////
//// Module: neighbourhood_test
//// API:
//// * None
//// - main() -> Nil
//// - get_test() -> Nil
//// Internal:
//// * None

Expand Down
3 changes: 2 additions & 1 deletion test/neighbourhoods_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
////
//// Module: neighbourhoods_test
//// API:
//// * None
//// - main() -> Nil
//// - get_test() -> Nil
//// Internal:
//// * None

Expand Down
5 changes: 4 additions & 1 deletion test/rule_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
////
//// Module: rule_test
//// API:
//// * None
//// - main() -> Nil
//// - new_test() -> Nil
//// - add_case_test() -> Nil
//// - apply_test() -> Nil
//// Internal:
//// * None

Expand Down
2 changes: 1 addition & 1 deletion test/ruleset_test.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
////
//// Module: ruleset_test
//// API:
//// * None
//// - main() -> Nil
//// Internal:
//// * None

Expand Down

0 comments on commit 72d6aab

Please sign in to comment.