mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
Merge branch 'android_branch' of ssh://xwords.git.sourceforge.net/gitroot/xwords/xwords into android_branch
This commit is contained in:
commit
a656bb8f0c
2 changed files with 7 additions and 4 deletions
|
@ -392,7 +392,10 @@ normalizeIQ( EngineCtxt* engine, XP_U16 iq )
|
|||
engine->nMovesToSave = 1;
|
||||
} else {
|
||||
XP_U16 count = NUM_SAVED_ENGINE_MOVES * iq / 100;
|
||||
engine->nMovesToSave = 1 + (XP_RANDOM() % count);
|
||||
engine->nMovesToSave = 1;
|
||||
if ( count > 0 ) {
|
||||
engine->nMovesToSave += XP_RANDOM() % count;
|
||||
}
|
||||
}
|
||||
XP_LOGF( "%s: set nMovesToSave=%d (iq=%d; NUM_SAVED_ENGINE_MOVES=%d)",
|
||||
__func__, engine->nMovesToSave, iq, NUM_SAVED_ENGINE_MOVES );
|
||||
|
|
|
@ -105,9 +105,9 @@ build_cmds() {
|
|||
LOG=${LOGDIR}/${GAME}_${DEV}_LOG.txt
|
||||
touch $LOG # so greps won't show errors
|
||||
CMD="./obj_linux_memdbg/xwords --room $ROOM"
|
||||
CMD="$CMD --robot ${NAMES[$DEV]} $OTHERS"
|
||||
CMD="$CMD --dict=$DICT --port=$PORT --host=$HOST --file=$FILE "
|
||||
CMD="$CMD --slow-robot 1:3 $PLAT_PARMS"
|
||||
CMD="$CMD --robot ${NAMES[$DEV]} --robot-iq=$((1 + (RANDOM%100))) "
|
||||
CMD="$CMD $OTHERS --dict=$DICT --port=$PORT --host=$HOST "
|
||||
CMD="$CMD --file=$FILE --slow-robot 1:3 $PLAT_PARMS"
|
||||
CMD="$CMD $PUBLIC"
|
||||
CMDS[$COUNTER]=$CMD
|
||||
FILES[$COUNTER]=$FILE
|
||||
|
|
Loading…
Reference in a new issue