Metadata-Version: 2.1
Name: fuzzy-asteroids
Version: 1.1.8
Summary: UC Fuzzy Challenge - Asteroids Simulation Environment
Home-page: https://github.com/TimArnettThales/FuzzyAsteroids
Author: Timothy Arnett
Author-email: tim.arnett@psibernetix.com
Maintainer: Brandon Kunkel
Maintainer-email: brandon.kunkel@psibernetix.com
License: MIT License
Keywords: fuzzy logic,artificial intelligence,asteroids
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
License-File: LICENSE
Requires-Dist: arcade (==2.5.1)

# Fuzzy Asteroids

This repository is a dependency for the [2021 UC Fuzzy Challenge repository](https://github.com/TimArnettThales/UCFuzzyChallenge). 
in which it is used as the simulation environment for the development of Fuzzy Logic AIs by competitors.

## Dependencies

The Python Arcade Library is the primary dependency for this repo and is used for creating the environment
for the game. 


## Installing

To install the Fuzzy Asteroids environment inside your Pytohn environment, we recommend using the following

    pip install git+https://github.com/TimArnettThales/FuzzyAsteroids.git@master#egg=fuzzy_asteroids

Or you could always add the following to your project's ``requirements.txt`` file:

and simply use

    pip install -r requirements.txt

We recommend tracking your proejct dependencies 

## Upgrading

Since this package is ``pip`` installed as a git repository, you can do an upgrade of this repository

    pip install --upgrade --force-reinstall -r requirements.txt


# Changelog

## [1.1.8] - 30 March 2021

- Fixed the logic that v1.1.7 introduced which was incorrect, where the FuzzyAsteroids class
  would not call the controller


## [1.1.7] - 29 March 2021

- Resolved error where controller may be called when the game is over, causing crash because the ship controller
  is expecting objects to be there that aren't (ex. no asteroids)

## [1.1.6] - 15 March 2021

- Ship/Asteroid sprites `angle` property will now be capped to (-180.0, 180.0) to simplify calculations
  on the controller side
- Resolved issue with sign convention of starting angle of Asteroids, now should correctly match
  the global angle conventions
- Resolved error in Scenario where ``count_asteroids()`` only counted correctly for 
  asteroids of size=4. This affected the ``max_asteroids()`` calc used in the Score class
- Map class properly uses the global settings as the default

## [1.1.5] - 15 March 2021

- Scenario can be labeled now, example: ``Scenario(name="random_asteroids")``
- Resolved issue where the environment would skipp counting the last death as a death

## [1.1.4] - 09 March 2021

- Fixed trig calc in Asteroid starting velocity to match map coordinate system.

## [1.1.3] - 09 March 2021

- Enabled specification of starting position/angle/lives of the ShipSprite
- Enabled the tracking of lives within the ShipSprite, rather than in the Game environment
- Crash printouts now state crash time and position

## [1.1.2] - 08 March 2021

- Resolved error where the final ship crash is not printed
- Resolved crash in completion of game mode, where the StoppingCondition enum
  could not be converted to an int

## [1.1.1] - 10 February 2021

- Resolved error in AsteroidGame where game would end immediately due to while loop conditional
  not being properly updated for new StoppingCondition enum
- Added Exceptions for incorrect user Score/Scenario inputs to run()/start_new_game()

## [1.1.0] - 08 February 2021

- Added StopCondition enum to highlight the game completion reason
- Added "time_limit" setting to the environment settings dictionary
- Time limit stop condition included, added time tracking to the graphics window
- Score now tracks time and stopping condition
- Fixed error where the ship was given an extra life. 
- Added computational cost tracking (evaluation time) to FuzzyAsteroidsGame via ``track_compute_cost`` kwarg, off by default

## [1.0.0] - 15 January 2021

- First official release of the Fuzzy Asteroids Simulation Environment


MIT License

Copyright (c) 2021 UC Fuzzy Challenge

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


