serin-delaunay / fleohsis Goto Github PK
View Code? Open in Web Editor NEW7DRL 2017 entry
License: MIT License
7DRL 2017 entry
License: MIT License
It's just noise.
Using py2exe, PyInstaller, cx_freeze, or similar.
So in https://github.com/serin-delaunay/fleohsis/blob/master/HealthPoints.py#L13,
Heart = HealthPoint.HealthPoint("Heart",[],[Abilities.Dead])
would become
Heart = HealthPoint.HealthPoint("Heart",[],["Dead"])
FLEOHSIS makes heavy use of type hints in function signatures, and of namedtuple
through typing.NamedTuple
. NamedTuple
doesn't support default attribute values until Python 3.6.1, which isn't released until after the 7DRL challenge ends. Until then, the only way to have both type hints and default values seems to be to use old-style NamedTuple
declarations, and assign to the class's __new__.__defaults__
. This workaround is not compatible with mypy.
Once Python 3.6.1 is released, the syntax used in these cases can be greatly simplified (and all variables can be given type hints).
The game is intended to be packaged as standalone executables for Windows and hopefully Mac (#4), so backwards compatibility is not really a concern. Linux users can just keep their Python version up to date.
Depends on #4.
So in https://github.com/serin-delaunay/fleohsis/blob/master/fleohsis_ipython.py#L35,
ht.insert_point(HealthPoints.Heart.copy())
would become
ht.insert_point("Heart")
A copy should be made of the referenced HealthPoint
.
Currently a HealthPoint
has two lists of abilities: one when healthy and one when damaged. These are used to generate description text. If the same ability is in both lists, it will add needless length to HealthPoint
description text.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.