24-Game Solver  2.0
Using recursive search and pruning
Loading...
Searching...
No Matches
game24_ultra.f90 File Reference

The main entry point for the 24-game solver, utilizing recursive search, progress bar, and OpenMP parallelization. More...

Modules

module  game24_module
 

Functions/Subroutines

subroutine game24_module::convert_to_number (input_str, number, ios)
 Converts user input (cards or numbers) into numeric values.
 
subroutine game24_module::remove_decimal_zeros (str, result)
 Removes trailing zeros after the decimal point in a string.
 
subroutine game24_module::create_new_arrays (nums, exprs, idx1, idx2, result, new_expr, new_nums, new_exprs)
 Creates new arrays after performing an operation.
 
subroutine game24_module::update_progress_bar ()
 Updates and displays the horizontal percentage-based progress bar.
 
recursive subroutine game24_module::solve_24 (nums, exprs, found)
 Recursively solves the 24 game by trying all possible operations.
 
program game24_ultra
 

Variables

integer, parameter game24_module::max_limit = 8
 
integer, parameter game24_module::expr_len = 200
 
integer(int64), parameter game24_module::total_calls_n6 = 20000000_int64
 
integer(int64), parameter game24_module::total_calls_n7 = 2648275200_int64
 
integer(int64), parameter game24_module::total_calls_n8 = 444557593600_int64
 
integer(int64) game24_module::total_calls = 0
 
integer(int64) game24_module::completed_calls = 0
 
integer game24_module::last_percentage = -1
 
integer, parameter game24_module::progress_bar_width = 50
 
character(len=1) game24_module::carriage_return = char(13)
 
logical game24_module::show_progress = .false.
 

Detailed Description

The main entry point for the 24-game solver, utilizing recursive search, progress bar, and OpenMP parallelization.

Author
Gilbert Young
Date
2024/09/15

Function/Subroutine Documentation

◆ game24_ultra()

program game24_ultra