Skip to main content
7 votes
Accepted

DIY Sudoku Solver (Windows Console App)

About your own points This has been written for my antiquated C++ compiler, but is really a C Windows Console app. (The old compiler allowed variables to be defined close to use, rather than grouped ...
G. Sliepen's user avatar
  • 58.3k
5 votes

DIY Sudoku Solver (Windows Console App)

Suggestions to decorate the code with modern C enhancements such as restrict, etc. are also welcome How about some C23 ...
user555045's user avatar
  • 9,994
4 votes

Connect4.java - The Connect Four game against an Alpha-beta pruning -based AI bot

I don't have time right now for a full review (and my Java is 20 years out of date anyway), but I do think we could improve the structure somewhat. At present, the human player is tightly coupled into ...
Toby Speight's user avatar
  • 77.1k
4 votes

Connect4.java - The Connect Four game against an Alpha-beta pruning -based AI bot

Heuristic For the heuristic, I have had success in the past by not necessarily looking for 3 consecutive pieces, but rather looking for partially complete sequences of 4. For example, the row ...
The Guy with The Hat's user avatar
3 votes

DIY Sudoku Solver (Windows Console App)

select is a reserved identifier: sys/select.h defines the select(2) system call. You may ...
Harith's user avatar
  • 9,100
3 votes

Family, felon & fuzz River Crossing challenge

Fix errors Presumably nTrav += i == nTrav is intended to refer to the i that's just gone out of scope from the preceding ...
Toby Speight's user avatar
  • 77.1k
2 votes
Accepted

Multithreaded Alpha-beta pruning for playing Connect Four in Java

You're probably not getting any replies because the subject is not very trivial and there isn't much to complain about your code. I would have written this as a comment as I don't think it really ...
TorbenPutkonen's user avatar
2 votes

Connect4.java - The Connect Four game against an Alpha-beta pruning -based AI bot

Algorithm Feedback You have chosen to make the game state immutable. This makes the code referentially transparent and therefore easy to reason about, but it also causes a quite significant part of ...
meriton's user avatar
  • 534
2 votes

DIY Sudoku Solver (Windows Console App)

There have been a handful of VERY USEFUL responses to this question during the last week. First, my thanks to those users for sharing their knowledge of current and future C code standards & ...
Fe2O3's user avatar
  • 1,209
2 votes

Dice evaluation in a Yahtzee-type game

Clarity of variable names I like the solution here, though I was thrown off at first by the roll and number variables. At first, ...
cariehl's user avatar
  • 937
2 votes

Family, felon & fuzz River Crossing challenge

Review After some minor teething problems were resolved (compiler versions and flags), the OP's code does what it needs to do. Noteworthy points: "Tracing" operation (print debugging) seems ...
Fe2O3's user avatar
  • 1,209
1 vote

"Element Fusion" game where 2048 meets Chemistry

Overview The code layout is good, and you used meaningful names for classes, functions and variables. Documentation The code should have a header comment describing the purpose of the code, such as: <...
toolic's user avatar
  • 3,751
1 vote

First tic tac toe game. want to see if valid or needs improvement

I have a few suggestions, but I'll just mention two. I would recommend defining the game board as just a 3 by 3 array containing only X, O, or blank. The way you've coded it here makes easy to print ...
ApexPolenta's user avatar
1 vote

Dice evaluation in a Yahtzee-type game

I really appreciate all the feedback, and would like to give credit to "cariehl" for noticing the bugs. By subtracting from "straightIndex", what happens looks like this " +1, ...
Mike Millar's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible