Hexlogic

Latest version: v0.0.4

Safety actively analyzes 687881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.0.4

Added

- added get_angle function, which calculates the angle from a line drawn from one point to another relative to the x-axis of a cartesian coordinate system
- added unittests for get_angle function

<!-- id='changelog-0.0.3'-->

0.0.3

Added

- added a mechanic initially adding all connected coordinates to a Set GraphMatrix.matrix_coords
- added List and Dictionary as return types for functions offering optional boolean choice to return RectCoords or HexCoords, selection is now based on entering the desired return data type as a String, the options being: "List", "Dict", "Tuple", "Coords" (for RectCoords or HexCoords, depending on returned length)
- added 64_px_example_tilemask.png
- added assertequals for dict and list output in unittests
- GraphMatrix based pathfinding returns None if no path from start to goal was found
- optional parameter for GraphMatrix based pathfinding, test_accessibility, tests if start and goal are connected to other tiles, if not returns None

Changed

- switched blocked movement for GraphMatrix and methods from 0 to negative values and updated unittests
- switched method of parent directory import of hexlogic to pathlib for unittests

Fixed

- fixed the shields being displayed after the link to the PyPi page for pygame-pgu and HexGrid in the readme
- spelling in hexlogic.py

<!-- id='changelog-0.0.2'-->

0.0.2

Changed

- Moved breadth_first_search() from an independent function to being a method of GraphMatrix
- dijkstras_algorithm() from an independent function to being a method of GraphMatrix
- a_star_algorithm() from an independent function to being a method of GraphMatrix
- removed block_var, being a Boolean from dist_lim_flood_fill and replaced it with movement_cost, being numerical, blocking movement if equal to 0
- adapted unittests to changes


<!-- id='changelog-0.0.1'-->

0.0.1

Added

- Initial release.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.