AMERICAN FOOTBALL [GAME]
Console Football Version 1.0
What does this update feature?
- Offensive plays, 4 downs, scoring, etc
- Features a "beautiful" console, ikr
Whats to come later then?
- More plays, including specifics, like shotgun and etc
- More a nicer UI to work with (keeping the console, but making it easier to use for the average person.
- Defense (Coming version 2.0)
Why the console of all places
- It seems like a very nice place to put something down; with websites you need to do all sorts of junk, but I think the console feel gives it a sense of "oldness"
- I want to make a console game. Yes, it sounds really weird, but I think it was necessary to actually do this since I wanted to use C++.
I officially announce this as my second step towards using C++
#pragma once #ifndef RANDOMNUM_H #define RANDOMNUM_H
If you're using
#pragma once you don't need
#ifndef (which is much better).
double randnum(double start, double end); double randnum(); int randint(); int randint(int start, int end);
Why are you declaring function prototypes and defining them right after?
C++ style casts (
static_cast and the like) are preferred over C-style casts (
"\n" is preferred over
std::cin >> userSelect;
std::ostream::get are preferred over
std::ostream operator >>.
First off all, there's no name for the
int argument. Second of all,
camel_case is generally used in C++ for variable, function, and method names and
PascalCase is used for classes.
Ok so pretty good except I don't really know how to play. Maybe add a rules of some sort to show how to play American Football?
also, not sure if possible in
C, but maybe colors? Oooo what about adding some cool ASCII art of like people throwing ball, kicking, the field, etc.
Good luck! :D
@Bookie0 Gridiron Football is a game that originated from the 1890s and the modern rules are as follows:
- At the start of each game, the referee flips a coin. Whoever wins gets to choose whether to kick-off and receive it in the second half (3rd quarter) or vice-versa.
- The receiving team can return it, catch it and kneel for 25 yards, or ignore it as a touchback.
- The offense has 40 seconds to snap or call a timeout.
- When the quarterback (or someone else) receives the snap, they can either:
- Drop back and pass
- Hand it over to another player
- Keep it and rush
- Lateral/Flip it to another player
- Kneel/Cock the ball (I think that's what it's called)
- After the play, a down passed. Here are some outcomes:
- They gained some yardage and it is 2nd down
- They lost yardage and it is 2nd down
- It was a turnover and the other team now has possession
- It was a safety for 2 points (the other team gets tackled
- It got turnovered for a touchdown
- A flag happened before the play, and the down is redone
with a penalty.
- A flag happened during the play, and a penalty is put on
the play, usually a redo.
- A flag happened after the play, and the penalty doesn't
effect what happened but instead puts yardage on the outcome.
- There are a starting 4 downs and to get another set, you have to reach the 10 yards or more.
- There are 4 quarters and 1 overtime if needed.
Colors are the same as in Bookie's Python tutorial (escape codes)
I scored a touchdown and went for an extra point and instead of giving me 1 point (6 to 7) it gave me 7 (6 to 13).
Pretty cool but it seems like there are a lot of bugs you might want to fix. Maybe fix before you post?
THERE ARE BUGS, AND I WOULD APPRECIATE IF YOU TOLD ME WHERE SO I CAN PATCH THEM AS SOON AS POSSIBLE!
ALSO, THE PROGRAM STOPS IF ITS A TURNOVER, SINCE DEFENSE ISN'T PLUGGED IN YET