Skip to content

ejulia/codingame-python-merger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codingame-python-merger

GitHub repo size GitHub contributors GitHub GitHub stars GitHub forks

ℹ️ codingame-python-merger is a tool that allows the CodinGame players to organize their Python code into multiple files. It is best used with the CodinGame Sync app and extension to push your code automatically to the plateform's editor. ℹ️


During the CodinGame AI competitions, the bot code can become quite big for a single file. This project lets you organize your Python code into multiple files, and automatically merge these into a single file that you can either copy or push to the CodinGame online editor.

Have fun!

Prerequisites

Before you begin, ensure that Python 2+ is installed and running on your machine.

Installing codingame-python-merger

  • Just clone this project on your computer, and start coding your bot!
  • If you want to use the CodinGame Sync App, the file to sync with is merge.py (not merger.py).

Using codingame-python-merger

  • Only the code written in the main/ directory will be appended to the merge.py file.

  • In the main/ directory, you can organize your code in as many sub-directories as you wish.

  • Only the *.py files will be merged, links (either symbolic or real) and files with another or no extension will be ignored.

  • The main.py file is appended last to the merge.py file, hence that is where your main code should be written.

  • When you are ready, execute the merger.py script. It will automatically merge all the appropriate files in the merge.py file. Library imports are managed during the process. If you are using the CodinGame Sync App, your code should be automatically pushed to the CodinGame online editor once when the merge is complete.

  • If you want to unit-test your code, use the test/ directory. The code there won't be appended to the merge.py file.

Contributing to codingame-python-merger

To contribute to codingame-python-merger, please refer to the GitHub documentation on creating a pull request.

Contributors

Contact

If you want to contact me you can reach me at emmanuel.julia[at]ik.me.

License

This project is licensed under the Open Source MIT License - see the LICENSE file for details.

Acknowledgments

This README.md file was written using scottydocs' README-template.md, the all-contributors emoji key, and shields from shields.io.

Disclaimer

This project is the result of independent work. The CodinGame company is not associated to it and may not be held liable for it.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages