2.8.C++ project: Design of the player matching management module for the online backgammon game

Article directory 1. Meaning 2. Function 3. Design 4. Blocking queue (1) Function (2) Framework (3) Code 5. Matching management (1) Function (2) Design (3) Framework (4) Code 1. Meaning Players in the backgammon battle are matched based on their own ladder scores, and the server divides players’ ladder scores into three levels: Bronze: Ladder […]

Common redis commands and their Java operations

Table of Contents 1. Getting started with Redis 1.1 Introduction to Redis 1.2 Redis download and installation 1.2.1 Redis download 1.2.2 Redis installation 1.3 Starting and stopping the Redis service 1.3.1 Service startup command 1.3.2 Client connection command 1.3.3 Modify Redis configuration file 1.3.4 Redis client graphics tool 2. Redis data type 2.1 Introduction to […]

2.3.C++ project: Design of practical tool module for online backgammon game

Article directory 1. Practical tool modules (1) Function 2. Design and packaging (1) Log macro encapsulation (2) mysql_util encapsulation (3) Jsoncpp-API encapsulation (4) file_util encapsulation (5) string_util encapsulation 1. Utility module (1) Function Utility modules are mainly responsible for implementing some edge function codes that will be used in projects in advance. Once implemented in […]

2.6.C++ Project: Data Management Module for Online Backgammon Battle – Design of Game Room Management Module

Article directory 1. Meaning 2. Function 3. Function 4. Basic framework of game room class 5. Basic framework of game room management 7. Game room code 8. Game room management code 1. Meaning Create a room for successfully matched players and establish a small-scale association between players! Actions generated by one player in the room […]

Apache Commons Collections

Apache Commons Collections is an extension to java.util.Collection. Currently, the Collections package has two commons-collections and commons-collections4. The latest version of commons-collections is 3.2.2, which does not support generics and is no longer officially maintained. The latest version of collections4 is 4.4, and the minimum requirement is Java 8 or above. Compared with collections, it […]

WPF Material Design UI framework: simple use of some common controls

Article directory Preface related resources MD framework usage Start environment configuration Install Nuget package Test whether the import is successful MD component usage test Button Card ComboBoxes: single box data binding version Data Grids: tables Dialogs: Pop-up windows Simple explanation Drawer: sidebar Tabs Pickers: time picker Progress Indicators: Progress bar Foreword Material Design in xaml […]

Apache Commons-Lang3

About the use of Apache Commons-Lang3 In our daily work, we often use some open source toolkits, such as String, Date, etc. Sometimes we are not aware of the existence of these tool classes, resulting in a waste of time during re-implementation during the development process, and the quality of the developed code is poor. […]

Rust common programming concepts

Article directory Variables and variability type of data scalar type integer type floating point type Boolean type Character type composite type tuple array function Comment control flow if expression cycle Variables and variability Variables and variability In Rust, the let keyword is used to declare a variable, and by default, the declared variable is immutable. […]