diff --git a/README.md b/README.md index 72a9fb7..9da30c6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Space Shooter -The classic retro game recreated using `Pygame` and `python`. +The classic retro game recreated using `Pygame` and `Python`. @@ -51,7 +51,7 @@ Follow the youtube video to see how I fared on ``spaceShooter`` - Power ups like - shield: increases the space ships life - bolt: increases the shooting capability of the ship by firing 2 to 3 bullets instead of one at time. -- Custom sounds and sprite animation for things like +- Custom sounds and sprite animation for things like: - meteorite explosion - bullet shoots - player explosion @@ -62,7 +62,7 @@ Follow the youtube video to see how I fared on ``spaceShooter`` [[Back to top]](https://github.com/tasdikrahman/spaceShooter#index) -| | Button | +| To | Press Button | |--------------|---------------------| | Move Left | left | | Move right | right | diff --git a/reversearray.cpp b/reversearray.cpp new file mode 100644 index 0000000..92e1080 --- /dev/null +++ b/reversearray.cpp @@ -0,0 +1,20 @@ +#include +using namespace std; + +int main(){ + int x1,v1,x2,v2,p; + double n; + cin>>x1>>v1>>x2>>v2; + n=(x1-x2)/(v2-v1); + p=n; + if(n-p==0 && n>0){ + cout<<"YES";}else{ + cout<<"NO"; + } + + + + return 0; +} + +