Skip to content

A simple JavaScript-based football match simulator showcasing ES6 features like destructuring, spread/rest operators, and short-circuiting. It manages team lineups, goal scorers, substitutions, and predicts the winner based on betting odds.

Notifications You must be signed in to change notification settings

sheharyarr-ahmed/FootyBets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📋 About

This is a JavaScript-based football match simulator built to demonstrate core ES6+ concepts in a fun and interactive way! It manages team lineups, tracks goal scorers, handles player substitutions, and even predicts the likely winner based on betting odds 🏆.

🧑‍💻 Topics Covered

Destructuring, Spread, Rest, Short-Circuiting, Functions, Parameters, Arguments, Odds, Comparison

✨ Features • ✅ Display both teams’ player lineups • ✅ Separate goalkeeper 🥅 from field players • ✅ Combine all players into a single array 👥 • ✅ Add substitute players to Team 1 🔄 • ✅ Destructure and display betting odds 🎯 • ✅ Dynamically count and display total goals scored ⚽ • ✅ Predict which team is more likely to win based on odds 🔮 (Using short-circuiting)

🛠️ Technologies Used • JavaScript (ES6+)

🚀 How to Run Locally 1. Clone this repo: git clone https://github.com/YourUsername/YourRepoName.git 2. Open the project folder in VS Code or any other code editor. 3. Run the JavaScript file (requires Node.js): node filename.js 👨‍🏫 Author • Sheharyar Ahmed 😊

About

A simple JavaScript-based football match simulator showcasing ES6 features like destructuring, spread/rest operators, and short-circuiting. It manages team lineups, goal scorers, substitutions, and predicts the winner based on betting odds.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published