Skip to content

BlaskVN/Millionaire-Game-Online

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Milionaire

Tính năng

  • Đăng ký, đăng nhập, đổi mật khẩu
  • Chơi đơn
  • Quyền trợ giúp
  • PVP online

Chạy chương trình

1. Config

1.1 Cài đặt MYSQL Server, library Dev MySQL

sudo apt install mysql-server libmysqlclient-dev

1.2 Cấp quyền cho MySQL

Thay thế 'YOUR_USERNAME''YOUR_PASSWORD' theo ý muốn

mysql -u 'YOUR_USERNAME' -p
ALTER USER 'YOUR_USERNAME'@'localhost' IDENTIFIED WITH mysql_native_password BY 'YOUR_PASSWORD';
FLUSH PRIVILEGES;
exit

Sau khi config cho database thì đổi YOUR_USERNAME YOUR_PASSWORD trong file config theo config ở trên

1.3 Tạo database ailatrieuphu

mysql -u 'YOUR_USERNAME' -p
create database ailatrieuphu;
exit

1.4 Config and import database

mysql -u YOUR_USERNAME -p ailatrieuphu < ailatrieuphu.sql 

2. Run

2.1 Make project

make clean && make all

2.2 Server

./server <PORT>

2.3 Client

./client <IP server> <PORT>

About

A simple terminal millionaire game that can be played online or offline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •