Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/r-o-b-o-t-o/quantum-battleships
https://github.com/r-o-b-o-t-o/quantum-battleships
game quantum-computing rust-lang school-project unity3d
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/r-o-b-o-t-o/quantum-battleships
- Owner: r-o-b-o-t-o
- Created: 2019-10-26T18:34:31.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-27T20:45:21.000Z (about 5 years ago)
- Last Synced: 2024-11-09T06:44:29.575Z (2 months ago)
- Topics: game, quantum-computing, rust-lang, school-project, unity3d
- Language: C#
- Size: 8.91 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quantum Battleships Expanded Edition
This project is an attempt at improving *Quantum Battleships with partial NOT gates* ([code](https://github.com/Qiskit/qiskit-community-tutorials/blob/master/games/battleships_with_partial_NOT_gates.ipynb) and [article](https://medium.com/qiskit/how-to-program-a-quantum-computer-982a9329ed02)) and integrating it into Unity.
## Building the engine
The engine is programmed in the Rust programming language using the [*q1tsim* quantum computer simulator crate](https://crates.io/crates/q1tsim).
To build the engine in order to use the project, [install Rust](https://www.rust-lang.org/tools/install), then run the following commands:
```bash
$ cd path/to/repository/battleships_engine
$ cargo build --release # building in release mode will yield better performances
$ cp target/release/battleships_engine ../Battleships # for Unix and macOS users
$ cp target/release/battleships_engine.exe ../Battleships # for Windows users
```You can now open the `Battleships` directory in Unity and play the game from the editor.
Don't forget to copy the engine binary next to the game's executable if you build the Unity project.## Assets used in this project
### Models
* **Ships** : *Kenney Pirate Kit* (published under the CC0 1.0 Universal license) : https://www.kenney.nl/assets/pirate-kit
* **Ships** : *Ships by Quaternius* (published under the CC0 1.0 Universal license) : http://quaternius.com/assets.html / https://drive.google.com/drive/folders/1Qf31QTnGfxRzYxx8dHmlVGDT4KmIa0Vy
* **Low-poly Bomb model** by *Google* (published under the CC-BY license) : https://poly.google.com/view/3_eYb_Ooax_### Unity assets
* **Low-poly water** : https://assetstore.unity.com/packages/tools/particles-effects/lowpoly-water-107563### Audio
* **Bomb sound** (published under the CC BY 3.0 license) : https://freesound.org/s/155235/
* **Error sound** (published under the CC BY 3.0 license) : https://freesound.org/s/417794/
* **Splash sounds** (published under the CC BY 3.0 license) : https://freesound.org/s/98335/