leerob / space-invaders

👾Python clone with a modern twist
https://leerob.io/blog/space-invaders-with-python
MIT License
247 stars 224 forks source link

Subships revised #27

Closed fustilio closed 5 years ago

fustilio commented 5 years ago

implemented subships as a spritegroup, similar to how OP made the enemiesgroup

leerob commented 5 years ago

Just out of curiosity, what are you building with this?

fustilio commented 5 years ago

Hi leerob,

Our team used your space invaders program as a base to create an even more modern twist of space invaders, with quantum computing!

You can take a look here: https://github.com/HuangJunye/QPong, for the original inspiration of quantum games. In QPong, a quantum circuit composer is used to control the position of the paddle.

We decided to create another quantum arcade game linked here: https://github.com/fustilio/Space_Invaders

Running the game requires the setup of Qiskit too as we are using their libraries to simulate quantum behaviours.

image Quantum Circuit Composer

image Ships in a state of superposition

We'll write a readme in the near future describing how to actually play it. But briefly, you can play the game normally using buttons O and P to move left and right and space bar to shoot. To open and close the quantum circuit composer, press Enter. To move around in the quantum circuit composer, use W,A,S,D and try some of the quantum gates available X and H are the easiest to understand.

ktnc985 commented 5 years ago

To add on to what @fustilio said, we made this as part of the the IBM Qiskit hackathon that was held in Singapore over the weekend, you can find our initial write up here

leerob commented 4 years ago

That's awesome - great work!