Jfresh windows version for the impatient

Discussion about chess-playing software (engines, hosts, opening books, platforms, etc...)
Post Reply
User923005
Posts: 616
Joined: Thu May 19, 2011 1:35 am

Jfresh windows version for the impatient

Post by User923005 » Thu Mar 27, 2014 9:04 pm

attached...
Attachments
JFresh-master.7z
source + windows binary (see https://github.com/christiandaley/JFresh for the original project)
(76.48 KiB) Downloaded 391 times

ChessDrone
Posts: 78
Joined: Mon Jan 28, 2013 10:56 am

Re: Jfresh windows version for the impatient

Post by ChessDrone » Fri Mar 28, 2014 4:48 pm

Thank you, it works :)

CDaley11
Posts: 42
Joined: Thu Jan 10, 2013 6:23 am
Real Name: Christian Daley

Re: Jfresh windows version for the impatient

Post by CDaley11 » Sat Mar 29, 2014 10:46 pm

Sorry for not making my engine windows compatible in the first place :(
I only have a mac to test on currently and posix threads are the only threads I know in plain C.
Honestly I'm a little surprised that my engine was noticed so quickly. If you have any feedback at all feel free to let me know. This is just a very basic engine so far and I still have a lot of work/fixes planned for it.

ChessDrone
Posts: 78
Joined: Mon Jan 28, 2013 10:56 am

Re: Jfresh windows version for the impatient

Post by ChessDrone » Sat Mar 29, 2014 11:46 pm

CDaley11 wrote:Sorry for not making my engine windows compatible in the first place :(
I only have a mac to test on currently and posix threads are the only threads I know in plain C.
Honestly I'm a little surprised that my engine was noticed so quickly. If you have any feedback at all feel free to let me know. This is just a very basic engine so far and I still have a lot of work/fixes planned for it.
Don't worry, Jfresh it was already portable for MinGW
Replace the Makefile or just add this -std=c99 -static -s

to compile in windows type: make mingw
but you need mingw posix threads

Code: Select all

#Makefile for JFresh by Christian Daley
CC = gcc
EXE = JFresh

ifeq ($(BUILD),pgo)
EXE = JFresh_pgo
CFLAGS = -msse4.2 -mpopcnt -O3 -DNDEBUG -std=c99 -static -s

else ifeq ($(BUILD),debug)
EXE = JFresh_debug
CFLAGS = -g -Wall -std=c99

else ifeq ($(BUILD),mingw)
CFLAGS = -O4 -DNDEBUG -std=c99 -static -s

else ifeq ($(BUILD),mac)
CFLAGS = -Ofast -DNDEBUG -s

else
CFLAGS = -Ofast -DNDEBUG -s
endif

all: JFresh

JFresh: main.o Attack.o Bitmask.o Bitscan.o Board.o Debug.o Eval.o Fen.o History.o Killer.o Log.o MagicMoves.o MagicNumberGen.o Move.o MoveGen.o Perft.o Search.o SearchOptions.o SearchResults.o Sort.o Thread.o TT.o Uci.o UciOptions.o Undo.o
	$(CC) $(CFLAGS) -o $(EXE) main.o Attack.o Bitmask.o Bitscan.o Board.o Debug.o Eval.o Fen.o History.o Killer.o Log.o MagicMoves.o MagicNumberGen.o Move.o MoveGen.o Perft.o Search.o SearchOptions.o SearchResults.o Sort.o Thread.o TT.o Uci.o UciOptions.o Undo.o

clean:
	$(RM) JFresh *.o *~

debug:
	make BUILD=debug

pgo:
	make BUILD=pgo

mingw:
	make BUILD=mingw

mac:
	make BUILD=mac

Post Reply