Skip to content

JamesDodd1/FootballScores

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FootballScores

A website to enter predicted scores for Premier League football games.

Web page with menu bar along the top, main portion of page contain a vertical list of each match and its kickoff time, the right side contain a leaderboard of total points and below is a Premier League table

Table of Contents

  1. General Info
  2. Technologies
  3. Setup
  4. Features
  5. Status
  6. Inspiration

1. General Info

The website allow all players to enter their predicted scores for every game each week. Points are recieved depending on what the actual result was. As well, one joker can be played each week and applied to a single game, doubling the points recieved for that individual match.

Scoring:

  • 3 points if the predicted score matches the actual score
  • 1 point point if the predicted score only matches the result
  • 0 points point if the predicted score doesn't match the result

2. Technologies

  • HTML5 & CSS
  • PHP
  • SQL
  • JavaScript

3. Setup

Due to this being a private website this code cannot be run fully as the connection to the database has been replaced by an example config file.

4. Features

  • Scores can be enter for each match
  • Only one joker can be selected per week
  • Scoring for each match shown by traffic light system - green is correct score, yellow is correct result, red is incorrect result
  • Each match can show and hide both teams recent form
  • Leaderboard table displays current ranking and points beside each week's matches
  • Full leaderboard displaying every weeks total points
  • Current Premier League table displayed beside each week's matches

Match Score Predicting

Rows for each match, coloured either green, yellow or red       Rows for each match, containing dropdown boxes to enter the score for each team

Matches coloured green, yellow or red showing point recieved (left) and entering goals score for each team for every match through the dropdown boxes (right)

Row containing a match, below is the name of the last five teams the match team played, the result and score

The results from both team's last five matches

Leaderboard

A table with a row for every week's total points and a column for every player, and the final row it a total for every week's points       A table with rows for each player, order by position downwards, and contains current weeks points and overall total points

Full leaderboard (left) and mini leaderboard (right)

To Do

  • Temporarily save current scores (e.g. in cookies) while entering results, incase page closed etc.
  • Redesign full leaderboard to be more stylish
  • Refactor code

5. Status

This project is currenly ongoing.

6. Inspiration

The idea for the website was to improve the functionality for myself and my family to play our football score prediction game. It allows everyone to be able to input, complete and view the games and scores wherever they are, rather than previously where it was all written on paper. Furthermore, the website makes it easier to store the results and is quicker to enter the next weeks games and automating the scoring.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published