42-ft_transcendence

ft_transcendence

This is a project we’ve created at 42. It is a web app built with Next.js and NextUI. It utilizes blockchain technology for features such as user authentication and user management. The platform also includes visually engaging 3D games like Pong and TicTacToe, developed using R3F to enhance the user experience and more.

Modules Implemented

Total: 10.5 / 9.5 Modules ✅

Installation

Use the package manager pip to install the requirements for the cli-client.

cd cli-client
pip install -r requirements.txt

Usage

Main Project

  1. Navigate to the project’s main directory.
  2. Run make in your terminal to set up the project.
  3. Connect to localhost.
  4. Log in with your wallet or use the Guest feature.

Note: As a Guest, you will not have access to the following features:

Crypto Wallet

To utilize all features, you need a crypto wallet with free testnet tokens.

Setup MetaMask:

  1. Download MetaMask:
  2. Create an Account or Log In.

  3. Configure the Sepolia Base Testnet:
    • Open the MetaMask browser extension.
    • Click the network selection dropdown menu at the top of the extension.
    • Click “Add Network.”
    • Select “Add a Network Manually.”

    Enter the following details:

    Field Value
    Network Name SepoliaBase
    New RPC URL https://sepolia.base.org
    Chain ID 84532
    Currency Symbol SepoliaETH

    Click “Save” and switch to the SepoliaBase network.

Tokens

To start, you’ll need testnet tokens:

  1. Visit this https://faucet.triangleplatform.com/base/sepolia
  2. Enter your wallet address (found in MetaMask under your account name, starting with 0x).

If you encounter issues, search for “Base Sepolia Faucets” and try other available faucets.


CLI-tool:

cd cli-client
python3 main.py -host [hostname]

For help, you can use:

python3 main.py -h

Showcase

login

TicTacToe ❌

TicTacToe TTT_gameplay

Pong 🏓

Pong Pong_gameplay

Credits 🔑

The 3D model used in this project, titled “wallet.fbx,” was created by vijay verma and is licensed under CC-BY-4.0. You can find the original model here.