Skip to content

manishchh/SimFarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SimFarm

Overview

SimFarm is a Java-based farming simulator developed as part of an assignment. This project demonstrates core Java concepts including inheritance, polymorphism, arrays, copy constructors, and console input/output. The simulation allows the user to manage a dynamic farm field, plant crops, deal with weeds, and manage finances.

Features

  • Implements an ecosystem with various farm items such as Grain, Apple, Weed, Soil, and UntilledSoil.
  • Dynamic field management using a 2D array representing the farm grid.
  • Object-oriented design with inheritance and polymorphism for different farm items.
  • Console-based user interface for actions such as tilling, planting, harvesting, viewing summary, and waiting.
  • Age and lifecycle management for farm items including growth, maturation, and death.
  • Customizable farm size and starting funds.
  • Git-based version control with detailed commit history.

Technologies Used

  • Java (Eclipse IDE)
  • Git & GitHub Desktop for version control

Assignment Learning Objectives

  • Master basic Java syntax and programming structures.
  • Work with arrays and dynamic data structures.
  • Understand inheritance, polymorphism, and abstract classes.
  • Implement copy constructors and cloning techniques.
  • Manage console input/output effectively.
  • Utilize Git for source control and version management.

How to Run

  1. Clone this repository.
  2. Open the project in Eclipse.
  3. Run the Marking.java file to execute the simulation.
  4. Follow on-screen prompts to interact with the farm simulation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages