Coder Social home page Coder Social logo

manfight's Introduction

ManFight

Two classes Man and ManFight that together make a fun little text game

This was made to amuse my non-techie husband and make him pay attention to my explanation of the code, I managed to get his attention for a minute so, win. I am just a beginner, part way through Tim Bulchalka's course, https://www.udemy.com/java-the-complete-java-developer-course/, so be kind.

How to Run

To compile the project run:

javac -d . Main.java Man.java ManFight.java CharacterCreation.java

and then to run the project:

java com.crystal.Main

This game has been improved a ton since I opened it up for hacktoberfest, I love that no one has made me feel bad for being a newbie with sloppy code and poor github skills. Everyone who has contributed to this game I just want to say thatthis has been a really fun experience so far, and I'm looking forward to the rest of the month.

Updates during Hacktoberfest, contributors:

Contributed code:

  • RitikRawat
  • melascuco
  • saguins
  • SinSentido
  • barbaraips
  • ashatch
  • DGKSK8LIFE
  • AlexDvorak
  • petr7555
  • shicker
  • Shashank-Jha
  • selsec
  • JessieVela

Contributed insults:

  • SubhamPramanik
  • jfsaaved
  • Bapego
  • sarathmohan2
  • LadySith
  • danmoren
  • burebistaxk
  • jacob-scheatzle
  • vincentvvv
  • clayt8
  • CBruno98

How to run

This project uses Gradle as its build system. Simply run:

./gradlew run

or on Windows:

gradlew.bat run

manfight's People

Contributors

alexdvorak avatar bapego avatar barbaraips avatar cbruno98 avatar danmoren avatar dgksk8life avatar jacob-scheatzle avatar jessievela avatar jfsaaved avatar ladysith avatar lbutan-gpsw avatar melascuco avatar ritikrawat avatar saguins avatar shashank-jha avatar subhampramanik avatar vertfromage avatar vincentvvv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

manfight's Issues

Incorporate Insults.java into manfight or add extra insults to Insults.java

I started a branch with Insults.java that adds more fun dialogue to the game but I haven't tried to incorporate it into the Man class yet, the easiest way to do that would be to add a new attack called insult and use the isScared within isInjured in a similar way to how roar is used. Maybe have the one being insulted respond by laughing with a weak insult, or with a mean one saying "well that's mean, but your insults won't stop me", but set isScared true with awesomeInsults and maybe say, "Wow, I don't know what to say!" or something funnier.

For beginners looking for a safe way to contribute adding more insults is easy.

Implement a summon monster attack in Fighter.java

So I thought it might be fun to give fighters the ability to summon a monster. The way I envision this is:

  • fighter summons monster
  • other fighter is asked: Do you want to summon a monster too or try and take on this monster on your own?
  • If they summon a monster the two monsters go head to head and one wins which then attacks a random limb on the character before leaving.
  • If they don't they can attack the monster and it's randomly decided if they frighten off the monster or the monster attacks a random limb.

There is already a Monster.java file that will help with implementing this idea. If you want to implement this or a part of it please claim in comments and I'll assign you.

Add funny Insults to Insults.java Beginners Only.

Super easy for new coders. In the interest of learning please also read through the core java files to try to understand how things work... they are in the src/main/java/com/crystal folder... it makes it more fun when you know how things work. Then add a new insult to one of the three categories of weak, mean or awesome insults.

Incorporate Insults.java into manFight so that players can insult each other.

Insults.java adds more fun dialogue to the game but it's not to incorporated it into the Man class yet, the easiest way to do that would be to add a new attack called insult and use the isScared within isInjured in a similar way to how roar is used. Maybe have the one being insulted respond by laughing with a weak insult, or with a mean one saying "well that's mean, but your insults won't stop me", but set isScared true with awesomeInsults and maybe say, "Wow, I don't know what to say!" or something funnier.

Improve the game

This is a simple text based java game I made. I thought it would be fun to let any other beginners who have been learning java contribute to it for Hacktoberfest... this will be my first year participating too.

Possible Improvements:

  • Add documentation
  • Add a monster class
  • Add more fight moves
  • incorporate the random class
  • Add insult method that throws out random insults and causes hurt feelings.

Running the game

I'm not sure how to run the game. I think adding that to the readme would be benificial.

This project is being 'managed' by a github newbie 'me' - Helpful advice/links please

So opened this project up for Hacktoberfest, and I've gotten lots of contributors and it's great and fun, but I've discovered that I have no idea about merge conflicts.

I know what they are, but I've been using github in the browser and with github desktop and I'm not sure about how to resolve them using github desktop and I have git bash on my computer but I've barely touched it so it's a bit intimidating to use.

I use intellij for the java programming course I've been using and I know there's a tool in it that allows me to compare files in it, can I use that to resolve the conflicts before pushing to github from github desktop?

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.