Giter Site home page Giter Site logo

sailproj's Introduction

Note: This project does NOT work correctly on the latest versions of Windows 10/11 due to major changes in the CMD/Terminal. Items are probably NOT going to be desplayed correctly unless run with an older version of the Windows CMD.

sailproj: A console sailing game written in C

This is a local multiplayer game for 1-4 players for the purposes of the lesson "Structured Programming". It uses the windows console to output the game to the player. Players can choose between 3 different ships (each with a unique advantage) and 3 difficulty levels (that affect the enviroment). Winds can influence the ship's movement, making it harder to reach the goal.

Note that the code comments are in Greek.

Specifications for the game (as given by the lesson's instructor)

Game type

Round based game with one or more players; in each round the players define their move; the moves are executed for all players at the same time.

Playground

A large lake with a large island; it has wide and narrow passages between the shores.

Game

The direction and the intensity of the wind changes on each round. Variable and strong wind means increased difficulty. Each player determines the direction and range of his/her movement. The program calculates with specific rules and with a some randomness (which can be changed depending on the desired difficulty) the cruising and the next point that each boat reaches. Optionally, each player's boats can collide with each other.

Winner

Whoever reaches the finish line first, completing a full cruising around the island.

Programming enviroments and compilers used:

Code editor: Visual Studio Code with the C/C++ extension

Compiler: GCC for Windows

sailproj's People

Contributors

selivanof avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.