Skip to content

Release v1.0&2.0 - 24 Point Game

Latest
Compare
Choose a tag to compare
@bud-primordium bud-primordium released this 16 Sep 13:02
· 96 commits to main since this release
3a3b23f

Release v1.0 - 24 Point Game (Standard Version)

Description:
This is the standard version of the 24 Point Game, written in Fortran. It provides basic functionality for solving the 24-point problem with input support for up to 8 cards. Optimized with -O3 for improved performance.

Key Features:

  • Optimized using the -O3 flag for aggressive performance improvement.
  • Supports input of up to 8 cards.
  • Includes both 32-bit and 64-bit executable files.

Files:

  • game24_v1.0_32bit.exe: 32-bit version, optimized with -O3.
  • game24_v1.0_64bit.exe: 64-bit version, optimized with -O3.

Release v2.0 - 24 Point Game (OpenMP and Progress Bar Support)

Description:
This is the advanced version of the 24 Point Game, written in Fortran, featuring OpenMP support for multi-threading, allowing the program to run more efficiently on multi-core systems. Additionally, a progress bar is integrated to show the calculation process.

Key Features:

  • Optimized using the -O3 flag for aggressive performance improvement.
  • OpenMP support for parallel computing, utilizing multi-core CPUs.
  • Includes a real-time progress bar for tracking the calculation status when n≥6.
  • Supports input of up to 8 cards and larger integers.

Files:

  • game24_v2.0_32bit.exe: 32-bit version, optimized with -O3 and OpenMP support.
  • game24_v2.0_64bit.exe: 64-bit version, optimized with -O3 and OpenMP support.

Instructions for Native Compilation (Optional)

For users who wish to compile the game with native architecture optimizations, you can try the following command. This allows you to fully utilize your system's architecture for potentially better performance.

Compilation Command for Native Optimization:

gfortran -O3 -march=native -fopenmp game24_v2.0.f90 -o game24_v2.0_native

This command will compile the v2.0 source code with OpenMP support and optimize for your local machine's architecture. It requires gfortran to be installed and properly configured.


Source Code

Both v1.0 and v2.0 source code files are included in this release. You can modify and compile them based on your specific requirements.

Files:

  • game24_v1.0.f90: Source code for version v1.0.
  • game24_v2.0.f90: Source code for version v2.0 (with OpenMP and progress bar support).

Usage Instructions:

  1. Download the appropriate version for your system (32-bit or 64-bit).
  2. Run the .exe file in your command line or by double-clicking it.

For multi-threading and progress bar functionality, it is recommended to use v2.0.