diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-nevolution-risk.spec | 209 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 211 insertions, 0 deletions
@@ -0,0 +1 @@ +/nevolution-risk-202.tar.gz diff --git a/python-nevolution-risk.spec b/python-nevolution-risk.spec new file mode 100644 index 0000000..63ec3d6 --- /dev/null +++ b/python-nevolution-risk.spec @@ -0,0 +1,209 @@ +%global _empty_manifest_terminate_build 0 +Name: python-nevolution-risk +Version: 202 +Release: 1 +Summary: Python Gym Environment for the popular Risk game +License: MIT License +URL: https://gitlab.com/nevolution.developers/slave/games/risk +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/64/f8/0edd9bd62cbc8fe7e4f8aed626bc3c6fe0e48f27b2f2fffbcb55bedd3534/nevolution-risk-202.tar.gz +BuildArch: noarch + +Requires: python3-networkx +Requires: python3-pygame +Requires: python3-numpy +Requires: python3-gym +Requires: python3-pytest + +%description +# risk + +This project is the python *plug and play* implementation of the game [risk](https://en.wikipedia.org/wiki/Risk_(game)). + +## TC1 (reached) + +We have reached TC1 when: +- we have created a general structure for the game (folder structure, packages, deployment) (reached) +- we have defined the observation space (reached) +- we have defined the action space (reached) + +## TC2 (reached) + +We have reached TC2 when: +- We have implemented Version 1 ([v1](./versions.md)) (reached) + +## TC3 (due date 21-12-2018) + +We have reached TC3 when: +- We have assigned an executor to each of the following bullet points +- We have moved `humain.py` to the environment (there is a `human mode` for that) +- We are able to load and store graphs (either through own implementation or via the [NetworkX](https://networkx.github.io/documentation/networkx-1.10/overview.html) library) +- We have enhanced code readability (refactor classes and functions to be understood more easily) +- We have documented the written code (correlates with the point above) +- We have implemented Version 2 ([v2](./versions.md)) + +## TC4 (due date 22-03-2019) + +We have reached TC4 when: +- We have implemented the actual risk map as our graph +- We have implemented the troop deployement +- We have playermoves consisting of seperate stages +- We have added Tests for our main features + +## TC5 (due date xx-xx-2019) + +We have reached TC5 when: +- We have implemented the random card reward for a won country + +## TC6 (due date xx-xx-2019) + +We have reached TC6 when: +- We have implemented the random dice roll to determine the outcome of a fight + + + +%package -n python3-nevolution-risk +Summary: Python Gym Environment for the popular Risk game +Provides: python-nevolution-risk +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-nevolution-risk +# risk + +This project is the python *plug and play* implementation of the game [risk](https://en.wikipedia.org/wiki/Risk_(game)). + +## TC1 (reached) + +We have reached TC1 when: +- we have created a general structure for the game (folder structure, packages, deployment) (reached) +- we have defined the observation space (reached) +- we have defined the action space (reached) + +## TC2 (reached) + +We have reached TC2 when: +- We have implemented Version 1 ([v1](./versions.md)) (reached) + +## TC3 (due date 21-12-2018) + +We have reached TC3 when: +- We have assigned an executor to each of the following bullet points +- We have moved `humain.py` to the environment (there is a `human mode` for that) +- We are able to load and store graphs (either through own implementation or via the [NetworkX](https://networkx.github.io/documentation/networkx-1.10/overview.html) library) +- We have enhanced code readability (refactor classes and functions to be understood more easily) +- We have documented the written code (correlates with the point above) +- We have implemented Version 2 ([v2](./versions.md)) + +## TC4 (due date 22-03-2019) + +We have reached TC4 when: +- We have implemented the actual risk map as our graph +- We have implemented the troop deployement +- We have playermoves consisting of seperate stages +- We have added Tests for our main features + +## TC5 (due date xx-xx-2019) + +We have reached TC5 when: +- We have implemented the random card reward for a won country + +## TC6 (due date xx-xx-2019) + +We have reached TC6 when: +- We have implemented the random dice roll to determine the outcome of a fight + + + +%package help +Summary: Development documents and examples for nevolution-risk +Provides: python3-nevolution-risk-doc +%description help +# risk + +This project is the python *plug and play* implementation of the game [risk](https://en.wikipedia.org/wiki/Risk_(game)). + +## TC1 (reached) + +We have reached TC1 when: +- we have created a general structure for the game (folder structure, packages, deployment) (reached) +- we have defined the observation space (reached) +- we have defined the action space (reached) + +## TC2 (reached) + +We have reached TC2 when: +- We have implemented Version 1 ([v1](./versions.md)) (reached) + +## TC3 (due date 21-12-2018) + +We have reached TC3 when: +- We have assigned an executor to each of the following bullet points +- We have moved `humain.py` to the environment (there is a `human mode` for that) +- We are able to load and store graphs (either through own implementation or via the [NetworkX](https://networkx.github.io/documentation/networkx-1.10/overview.html) library) +- We have enhanced code readability (refactor classes and functions to be understood more easily) +- We have documented the written code (correlates with the point above) +- We have implemented Version 2 ([v2](./versions.md)) + +## TC4 (due date 22-03-2019) + +We have reached TC4 when: +- We have implemented the actual risk map as our graph +- We have implemented the troop deployement +- We have playermoves consisting of seperate stages +- We have added Tests for our main features + +## TC5 (due date xx-xx-2019) + +We have reached TC5 when: +- We have implemented the random card reward for a won country + +## TC6 (due date xx-xx-2019) + +We have reached TC6 when: +- We have implemented the random dice roll to determine the outcome of a fight + + + +%prep +%autosetup -n nevolution-risk-202 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-nevolution-risk -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu May 18 2023 Python_Bot <Python_Bot@openeuler.org> - 202-1 +- Package Spec generated @@ -0,0 +1 @@ +c40168e2af868751c853aa5a7b652d68 nevolution-risk-202.tar.gz |