Giter VIP home page Giter VIP logo

the-conqueror's Introduction

TheConqueror

Codacy Badge

A single player turn-based empire building game. A player initially chooses one historical city to start his empire with. The goal is to conquer the whole world by taking control over every other city under a certain amount of turns. In order to achieve this goal, the player have the option of building various types of building in any city he has control over and also build armies in order to conquer other cities.

Contents

  1. OOP concepts (Inheritance - Polymorphism - Abstraction - Encapsulation ).
  2. Exception Handling.
  3. GUI

Who is this game for

  • For anyone who wants to learn about OOP, MVC, Swing.
  • For anyone who might find this game fun ๐Ÿ˜Œ.
  • For my future employer who will accept my resume when seeing this wonderful clean code game :"D.

Project Structure

src/
โ”œโ”€โ”€ buildings
โ”‚ย ย  โ”œโ”€โ”€ ArcheryRange.java
โ”‚ย ย  โ”œโ”€โ”€ Barracks.java
โ”‚ย ย  โ”œโ”€โ”€ Building.java
โ”‚ย ย  โ”œโ”€โ”€ EconomicBuilding.java
โ”‚ย ย  โ”œโ”€โ”€ Market.java
โ”‚ย ย  โ””โ”€โ”€ ..............
โ”œโ”€โ”€ controllers
โ”‚ย ย  โ””โ”€โ”€ Controller.java
โ”œโ”€โ”€ engine
โ”‚ย ย  โ”œโ”€โ”€ City.java
โ”‚ย ย  โ”œโ”€โ”€ Distance.java
โ”‚ย ย  โ”œโ”€โ”€ Game.java
โ”‚ย ย  โ”œโ”€โ”€ Player.java
โ”‚ย ย  โ””โ”€โ”€ ............
โ”œโ”€โ”€ exceptions
โ”‚ย ย  โ”œโ”€โ”€ ArmyException.java
โ”‚ย ย  โ”œโ”€โ”€ BuildingException.java
โ”‚ย ย  โ”œโ”€โ”€ FriendlyCityException.java
โ”‚ย ย  โ”œโ”€โ”€ FriendlyFireException.java
โ”‚ย ย  โ””โ”€โ”€ .......................
โ”œโ”€โ”€ units
โ”‚ย ย  โ”œโ”€โ”€ Archer.java
โ”‚ย ย  โ”œโ”€โ”€ Army.java
โ”‚ย ย  โ”œโ”€โ”€ Infantry.java
โ”‚ย ย  โ”œโ”€โ”€ Status.java
โ”‚ย ย  โ””โ”€โ”€ ................
โ”œโ”€โ”€ utlis
โ”‚ย ย  โ””โ”€โ”€ ReadingCSVFile.java
โ””โ”€โ”€ views
    โ”œโ”€โ”€ button
    โ”‚ย ย  โ”œโ”€โ”€ CityButton.java
    โ”‚ย ย  โ”œโ”€โ”€ StyledButton.java
    โ”‚ย ย  โ””โ”€โ”€ UnitButton.java
    โ”œโ”€โ”€ MyInputVerifier.java
    โ”œโ”€โ”€ panel
    โ”‚ย ย  โ”œโ”€โ”€ ArmyPanel.java
    โ”‚ย ย  โ”œโ”€โ”€ CardsPanel.java
    โ”‚ย ย  โ”œโ”€โ”€ MilitaryBuildingPanel.java
    โ”‚ย ย  โ”œโ”€โ”€ PlayerPanel.java
    โ”‚ย ย  โ””โ”€โ”€ .....................
    โ”œโ”€โ”€ RXCardLayout.java
    โ””โ”€โ”€ view
        โ”œโ”€โ”€ BattleView.java
        โ”œโ”€โ”€ CityView.java
        โ”œโ”€โ”€ EndGameView.java
        โ”œโ”€โ”€ StartView.java
        โ””โ”€โ”€ ..............

Views Of the game

the game consists of 3 views beside the start view

  1. World Map View

    responsible for viewing the cities of the game , armies of the player and thier status.

  2. City View

    responsible for showing different buildings for each city where the player could build , upgrade and recruit units ti build his/her army.

  3. Battle View

    responsible for battles between army of the player and opponent cities where player could manage the battle manually or choose to auto resolve it.

Authors

  1. Shimaa Ahmed
  2. Ahmed Shaawray
  3. Ibrahim Abou Elenein

the-conqueror's People

Contributors

aboueleyes avatar codacy-badger avatar imgbotapp avatar shaarawy29 avatar shimaabetah 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.