khi sử dụng nó để cập nhật vũ khí của người chơi. Sau đây là mã cho các phương pháp của người chơi Chương trình của bạn là "học" từ các trò chơi nó đóng, cho đến khi nó chủ trò chơi và có thể chơi hoàn hảo. Tic-tac-toe là một trò chơi rất dễ dàng chơi trên một bảng 3 3 × như thế này: | of Ruby Series The Facets James Edward Gray II and the Ruby Community Best of Rub Best of Ruby Quiz Volume One James Edward Gray II The Pragmatic Bookshelf Raleigh North Carolina Dallas Texas A Pragmatic _ Hookshelf Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book and The Pragmatic Programmers LLC was aware of a trademark claim the designations have been printed in initial capital letters or in all capitals. The Pragmatic Starter Kit The Pragmatic Programmer Pragmatic Programming Pragmatic Bookshelf and the linking g device are trademarks of The Pragmatic Programmers LLC. Every precaution was taken in the preparation of this book. However the publisher assumes no responsibility for errors or omissions or for damages that may result from the use of information including program listings contained herein. Our Pragmatic courses workshops and other products can help you and your team create better software and have more fun. For more information as well as the latest Pragmatic titles please visit us at http Copyright 2006 The Pragmatic Programmers LLC. All rights reserved. No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any means electronic mechanical photocopying recording or otherwise without the prior consent of the publisher. Printed in the United States of America. ISBN 0-9766940-7-7 Printed on acid-free paper with 85 recycled 30 post-consumer content. First printing February 2006 Version .