亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? plyhashtableimpl.java

?? chess 一個beguanyu國際象棋的一個Java源碼
?? JAVA
字號:
/*  PlyHashtableImpl - A class to store chess plies in a hashtable.  Copyright (C) 2003 The Java-Chess team <info@java-chess.de>  This program is free software; you can redistribute it and/or  modify it under the terms of the GNU General Public License  as published by the Free Software Foundation; either version 2  of the License, or (at your option) any later version.  This program is distributed in the hope that it will be useful,  but WITHOUT ANY WARRANTY; without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  GNU General Public License for more details.  You should have received a copy of the GNU General Public License  along with this program; if not, write to the Free Software  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.*/ package de.java_chess.javaChess.engine.hashtable;import de.java_chess.javaChess.board.*;import de.java_chess.javaChess.ply.*;import java.util.*;/** * This class implements the functionality to store chess plies in * a hashtable. */public class PlyHashtableImpl implements PlyHashtable {    // Instance variables    /**     * The maximum number of entries.     */    private int _maxSize;    /**     * A hashtable to store the plies.     */    Hashtable _hashtable;    /**     * A linked list to reproduce the order of     * the inserted plies.     */    LinkedList _orderedList;    // Constructors    /**     * Create a new hashtable instance with a given maximum size.     *     * @param maxSize The maximum number of entries.     */    public PlyHashtableImpl( int maxSize) {	_hashtable = new Hashtable();	_orderedList = new LinkedList();	setMaximumSize( maxSize);    }    // Methods    /**     * Reset the hashtables for a new game.     */    public void reset() {	_hashtable.clear();    // Remove all the entries from the hashtable.	_orderedList.clear();  // And the ordered list.    }    /**     * Get the maximum number of entries in the hashtable.     *     * @return The maximum number of entries in the hashtable.     */    public final int getMaximumSize() {	return _maxSize;    }    /**     * Set the maximum number of entries in the hashtable.     *     * @param maximumEntries The new maximum number of entries.     */    public final void setMaximumSize( int maximumEntries) {	_maxSize = maximumEntries;	// Remove the oldest entries, if the current size	// is bigger than the new maximum size.	while( getSize() > getMaximumSize()) {	    removeOldestEntry();	}    }    /**     * Get the current number of entries.     *     * @return The current number of entries.     */    public final int getSize() {	return _hashtable.size();    }    /**     * Try to push a new entry into the hashtable.     *     * @param entry The new entry, that the hashtable might store.     */    public final void pushEntry( PlyHashtableEntry ply) {	// Compute and store the key for this ply.	Long hashKey = new Long( ply.hashKey());	// Check if this ply is not already in the hashtable	PlyHashtableEntry oldEntry = (PlyHashtableEntry)( _hashtable.get( hashKey));	if( oldEntry != null) {  //  There is a entry with the same key	    if( oldEntry.getSearchDepth() >= ply.getSearchDepth()) {		return;  // This entry shouldn't be replaced.	    }	} else {  // Now we actually add a new entry to the table.	    // Check, if the hashtable has not exceeded it's maximum capacity	    // and remove older entries, if necessary.	    while( getSize() >= getMaximumSize()) {		removeOldestEntry();	    }	}	// Put the new ply into the hashtable	_hashtable.put( hashKey, ply);		// Append the new ply at the end of the list of plies.	// ATTENTION: this will only work, if there's only _one_	// ply for each key!	_orderedList.add( hashKey);    }    /**     * Get the stored ply for a given board and piece color.     *     * @param board The current board.     * @param white true, if we want to ply with the white pieces.     */    public final Ply getPly( Board board, boolean white) {		// Compute the hashkey for the board and piece color and try to get a ply.	PlyHashtableEntry entry = (PlyHashtableEntry)( _hashtable.get( new Long( PlyHashtableEntryImpl.hashKey( board, white))));	// Check, if the board from the entry is identical to the passed board.	if( ( entry != null) && entry.getBoard().equals( board)) {	    return entry.getPly();	}	// No ply for this board found.	return null;    }    /**     * Try to remove the oldest entry.     * ATTENTION: this version will only work, if there's only _one_ entry for each hashkey!     */    public final void removeOldestEntry() {	// Get and remove the oldest ply from the ordered list.	_hashtable.remove( _orderedList.removeFirst());    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美成人a在线| 国产欧美精品一区二区色综合朱莉| 亚洲丝袜制服诱惑| 捆绑调教美女网站视频一区| 欧美日免费三级在线| 国产精品久久久久毛片软件| 国产suv一区二区三区88区| 久久久精品国产免费观看同学| 免费高清不卡av| 91精品麻豆日日躁夜夜躁| 亚洲一区二区三区视频在线| 在线视频一区二区三区| 亚洲成人777| 欧美一区二区网站| 卡一卡二国产精品 | 中文字幕欧美三区| 成人免费视频caoporn| 中文文精品字幕一区二区| 成人一道本在线| 国产精品国产a| 粉嫩欧美一区二区三区高清影视| 欧美一级欧美三级| 久88久久88久久久| 国产亚洲精久久久久久| 福利视频网站一区二区三区| 国产精品麻豆网站| 欧美亚洲国产bt| 蜜臀精品久久久久久蜜臀| 久久久精品日韩欧美| 91女神在线视频| 日韩av一区二区在线影视| 精品日韩一区二区三区 | 麻豆精品在线看| 日韩一区二区三区精品视频| 韩国精品主播一区二区在线观看| 欧美国产精品一区二区三区| 99久精品国产| 视频一区二区欧美| 久久久久久久一区| 欧美自拍偷拍一区| 极品美女销魂一区二区三区| 国产精品五月天| 91高清视频在线| 视频一区视频二区中文| 久久久久国产精品麻豆ai换脸 | 中文字幕一区在线观看| 欧美性xxxxx极品少妇| 黄色精品一二区| 一区二区三区日韩欧美精品| 日韩精品自拍偷拍| 成人毛片视频在线观看| 日韩精品乱码av一区二区| 欧美高清在线精品一区| 欧美久久久久久久久久| 国产suv精品一区二区三区 | 无吗不卡中文字幕| 中文字幕精品—区二区四季| 欧美片在线播放| 国产精品一区二区三区网站| 午夜日韩在线电影| 国产精品国产三级国产aⅴ入口 | 久久se精品一区二区| 亚洲欧洲综合另类| 久久久99精品免费观看不卡| 欧美日韩在线播放| 99久久婷婷国产综合精品| 蜜乳av一区二区| 亚洲一区视频在线观看视频| 国产欧美一区二区三区网站| av电影在线观看不卡| 国产一区美女在线| 日韩国产欧美在线视频| 国产精品免费视频观看| 欧美一区二区三区白人| 在线免费观看成人短视频| 成人av集中营| 国产成人午夜视频| 精品一区二区久久| 亚洲图片欧美视频| 亚洲最大色网站| 亚洲嫩草精品久久| 亚洲情趣在线观看| 国产精品久久看| 欧美国产日韩精品免费观看| 久久精品欧美一区二区三区麻豆| 色综合久久综合网97色综合| 99精品视频中文字幕| voyeur盗摄精品| 成人黄色网址在线观看| 成人av在线网| av成人动漫在线观看| 成人免费毛片片v| 国产盗摄视频一区二区三区| 蜜桃av一区二区三区| 蜜桃久久久久久久| 蜜桃视频一区二区三区| 日本不卡123| 美女久久久精品| 蜜桃91丨九色丨蝌蚪91桃色| 久久er精品视频| 国产一区二区视频在线播放| 日本aⅴ亚洲精品中文乱码| 免费在线看一区| 激情综合色综合久久综合| 日日夜夜精品视频天天综合网| 婷婷夜色潮精品综合在线| 视频一区二区欧美| 免费国产亚洲视频| 国产一区二区三区在线观看免费视频| 麻豆成人久久精品二区三区红| 激情国产一区二区| 懂色av一区二区夜夜嗨| 99久精品国产| 欧美日本在线播放| 日韩一级片在线观看| 国产日韩欧美精品综合| 亚洲欧美一区二区三区孕妇| 亚洲777理论| 激情深爱一区二区| 不卡欧美aaaaa| 欧美日韩大陆在线| 精品国产一区二区三区四区四| 2023国产精品自拍| 1000精品久久久久久久久| 亚洲综合丁香婷婷六月香| 日韩不卡一区二区| 国产精品一区三区| 欧美在线999| 精品国产伦一区二区三区观看方式 | 制服丝袜在线91| 久久亚洲一区二区三区四区| 亚洲一区二区美女| jizzjizzjizz欧美| 日韩欧美区一区二| 亚洲大片免费看| 99久久99久久精品免费观看| 欧美精品一区二区三区视频 | 免播放器亚洲一区| 91麻豆国产福利精品| 国产视频亚洲色图| 美国欧美日韩国产在线播放 | 欧美一区二区三区爱爱| 一区二区三区欧美视频| 福利一区二区在线| 精品动漫一区二区三区在线观看| 一区二区欧美在线观看| 成人美女视频在线看| 国产午夜精品久久久久久久| 美女一区二区视频| 欧美日韩成人综合天天影院| 亚洲男女一区二区三区| av资源站一区| 中文字幕免费不卡| 国产91精品欧美| 久久综合久色欧美综合狠狠| 久久狠狠亚洲综合| 欧美一区二区在线免费播放| 丝袜美腿高跟呻吟高潮一区| 欧美丝袜第三区| 亚洲愉拍自拍另类高清精品| 91国偷自产一区二区开放时间 | 久久精品视频一区| 韩国女主播成人在线观看| 欧美大肚乱孕交hd孕妇| 美女视频免费一区| 欧美一二三四区在线| 日韩1区2区3区| 91精品久久久久久久久99蜜臂| 爽爽淫人综合网网站| 欧美一区二区网站| 精品伊人久久久久7777人| 日韩欧美激情一区| 国产一区二区美女| 国产欧美一区二区精品性色| 国产成人无遮挡在线视频| 国产色产综合色产在线视频| 粉嫩aⅴ一区二区三区四区| 国产精品高潮久久久久无| 色婷婷亚洲综合| 亚洲成av人影院在线观看网| 欧美日韩国产综合久久| 日韩精品电影一区亚洲| 欧美va天堂va视频va在线| 狠狠色丁香婷婷综合| 国产日韩欧美在线一区| 91视频91自| 丝瓜av网站精品一区二区| 日韩视频一区二区三区在线播放| 九一久久久久久| 中文字幕日韩一区二区| 欧美日韩一区二区在线视频| 蜜桃av噜噜一区| 欧美激情一区二区| 在线精品视频一区二区| 蜜臀av性久久久久蜜臀aⅴ| 亚洲国产精品精华液2区45| 91传媒视频在线播放| 日韩电影免费在线看| 国产欧美精品在线观看| 欧美日韩精品系列|