-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add features to make the package more usable * Prepare package for PyPI release * Add Travis CI * Add pip requirements * Add Travis CI badge * Fix setup.py * Add PyPI to README
- Loading branch information
1 parent
3bbf0e7
commit 0148ec5
Showing
18 changed files
with
107 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
language: python | ||
python: | ||
- "3.6" | ||
install: | ||
- pip install -r requirements.txt | ||
script: pytest |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from literature.actor import Actor | ||
from literature.card import Card, deserialize, HalfSuit, Rank, Suit | ||
from literature.constants import * | ||
from literature.knowledge import ConcreteKnowledge, Knowledge | ||
from literature.learning import ( | ||
GameHandler, | ||
Model, | ||
model_from_file, | ||
play_against_model | ||
) | ||
from literature.literature import get_game, Literature, Team | ||
from literature.move import Move, Request | ||
from literature.player import Player |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
Union | ||
) | ||
|
||
from constants import ( | ||
from literature.constants import ( | ||
Half, | ||
MINOR, | ||
MAJOR, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[metadata] | ||
description-file = README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from distutils.core import setup | ||
setup( | ||
name='literature', | ||
packages=['literature'], | ||
version='0.1.0', | ||
license='MIT', | ||
description='Literature card game implementation', | ||
author='Neel Somani', | ||
author_email='neeljaysomani@gmail.com', | ||
url='https://github.com/neelsomani/literature', | ||
download_url='https://github.com/neelsomani/literature/releases', | ||
keywords=[ | ||
'machine-learning', | ||
'q-learning', | ||
'neural-network', | ||
'artificial-intelligence', | ||
'card-game' | ||
], | ||
install_requires=[ | ||
'numpy==1.17.0', | ||
'pytest==5.0.1', | ||
'scikit-learn==0.21.3' | ||
], | ||
classifiers=[ | ||
'Development Status :: 5 - Production/Stable', | ||
'Intended Audience :: Developers', | ||
'Topic :: Games/Entertainment', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python :: 3.6' | ||
], | ||
) |