Skip to content

Latest commit

 

History

History
83 lines (54 loc) · 2.88 KB

README.md

File metadata and controls

83 lines (54 loc) · 2.88 KB

Dictator Game Web Front-End

This repository contains the front-end code for the Dictator Game, a classic experiment in behavioral economics. In this interactive game, players can assume the roles of either dictators or citizens and make decisions about allocating resources among one another.

Dictator Gameplay

Overview

The Dictator Game is designed to study decision-making behavior that tests theories of fairness and altruism. This front-end implementation provides a user-friendly interface for interacting with the game logic, participating in game sessions, and viewing results.

The game will features multiple levels, tiles, and dynamic roles, providing a rich platform for exploring decision-making, strategy, and social dynamics in an economic context.

Features (Mostly TODO)

  • Role Selection: Users can choose to play as a dictator or a citizen.
  • Resource Allocation: Dictators can allocate resources between themselves and another player.
  • Real-Time Updates: The game updates in real-time as players make their decisions.
  • Session History: Players can view past game results and decisions.

Technology Stack

  • JavaScript: The project is built using modern JavaScript with Local Storage.
  • Vue.js: The project uses Vue.js for reactive user interfaces.
  • Vuex: State management is handled by Vuex.
  • Vue Router: Routing is managed with Vue Router.
  • Axios: HTTP requests are made using Axios.
  • Bulma: The application uses the Bulma CSS framework for styling.

Getting Started

Follow these steps to get the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Node.js
  • npm or yarn

Installation

  1. Clone the repository:

    git clone https://github.com/mtwesley/dictator-game-web
    cd dictator-game-web
  2. Install dependencies:

    npm install
  3. Set up the environment variables: Use the file named .env and adjust the settings to match your local development environment.

  4. Serve the application:

    npm run serve
  5. Open your browser and visit http://localhost:8080 to view the application.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgments