-
Notifications
You must be signed in to change notification settings - Fork 1
/
android-jogo-da-velha.html
341 lines (281 loc) · 15.4 KB
/
android-jogo-da-velha.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
<!DOCTYPE html>
<html lang="pt-br" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml" >
<head>
<title>Jogo da Velha com Java para Android - eXcript</title>
<!-- Using the latest rendering mode for IE -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google-site-verification" content="Vi7WdSsBR9oK2RjK_6E8OrtAfzA_mVlNrhlDjt7LXZ0" />
<!--<link href="https://plus.google.com/" rel="publisher"> -->
<link rel="canonical" href="http://excript.com/android-jogo-da-velha.html">
<meta name="author" content="Cláudio Rogério Carvalho Filho" />
<meta name="keywords" content="android,java,jogo,jogo da velha,blog" />
<meta name="description" content="Nesta série de aulas desenvolveremos um jogo da velha para Android utilizando a linguagem Java. A cada aula adicionaremos mais funcionalidades à nossa aplicação e estudaremos a razão pela qual estamos utilizando determinado código." />
<meta property="og:site_name" content="eXcript" />
<meta property="og:type" content="article"/>
<meta property="og:title" content="Jogo da Velha com Java para Android"/>
<meta property="og:url" content="http://excript.com/android-jogo-da-velha.html"/>
<meta property="og:description" content="Nesta série de aulas desenvolveremos um jogo da velha para Android utilizando a linguagem Java. A cada aula adicionaremos mais funcionalidades à nossa aplicação e estudaremos a razão pela qual estamos utilizando determinado código."/>
<meta property="article:published_time" content="01-05-2016" />
<meta property="article:section" content="android" />
<meta property="article:tag" content="android" />
<meta property="article:tag" content="java" />
<meta property="article:tag" content="jogo" />
<meta property="article:tag" content="jogo da velha" />
<meta property="article:tag" content="blog" />
<meta property="article:author" content="Cláudio Rogério Carvalho Filho" />
<meta property="og:image" content="http://excript.com/images/logo-excript.png"/>
<link rel="stylesheet" href="http://excript.com/theme/css/asciidoctor-default.css" type="text/css"/>
<!-- Bootstrap -->
<link rel="stylesheet" href="http://excript.com/theme/css/bootstrap.min.css" type="text/css"/>
<link href="http://excript.com/theme/css/font-awesome.min.css" rel="stylesheet">
<link href="http://excript.com/theme/css/pygments/monokai.css" rel="stylesheet">
<link rel="stylesheet" href="http://excript.com/theme/css/style.css" type="text/css"/>
<link href="http://excript.com/feeds/all.atom.xml" type="application/atom+xml" rel="alternate"
title="eXcript ATOM Feed"/>
<link href="http://excript.com/feeds/all.rss.xml" type="application/rss+xml" rel="alternate"
title="eXcript RSS Feed"/>
<link href="http://excript.com/feeds/android.atom.xml" type="application/atom+xml" rel="alternate"
title="eXcript android ATOM Feed"/>
</head>
<body>
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="http://excript.com/" class="navbar-brand">
eXcript </a>
</div>
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li><a href="http://excript.com/tag/blog.html">blog</a></li>
<li><a href="http://excript.com/cursos.html">cursos</a></li>
<li><a href="http://excript.com/pages/about.html">quem somos</a></li>
<li><a href="http://doe.excript.com/">DOE</a></li>
<li><a href="http://excript.com/pages/contato.html">contato</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="http://excript.com/archives.html"><i class="fa fa-th-list"></i><span class="icon-label">Archives</span></a></li>
</ul>
</div>
<!-- /.navbar-collapse -->
</div>
</div> <!-- /.navbar -->
<!-- Banner -->
<!-- End Banner -->
<div class="container container-content">
<div class="row">
<div class="col-lg-12">
<section id="content">
<article>
<header class="page-header">
<h1>
<a href="http://excript.com/android-jogo-da-velha.html"
rel="bookmark"
title="Permalink to Jogo da Velha com Java para Android">
JOGO DA VELHA COM JAVA PARA ANDROID
</a>
</h1>
<h3 class="h3curso">
<a href="http://excript.com/android-jogo-da-velha.html"
rel="bookmark"
title="Permalink to Jogo da Velha com Java para Android">
JOGO DA VELHA COM JAVA PARA ANDROID
</a>
</h3>
</header>
<div class="entry-content">
<div class="panel">
<div class="panel-body">
<footer class="post-info">
<span class="label label-default"></span>
<span class="published">
<time datetime="2016-05-01T00:00:00-03:00"> Publicado em 01-05-2016</time>
</span>
<span class="label label-default"></span>
por <a href="http://excript.com/author/claudio-rogerio-carvalho-filho.html">Cláudio Rogério Carvalho Filho</a>
</footer><!-- /.post-info --> </div>
</div>
<div>
<div class="section" id="sobre">
<h2>SOBRE</h2>
<p>Nesta série de 11 aulas, desenvolveremos um Jogo da Velha com a linguagem Java voltado a ser executado na plataforma Android. A cada aula evoluiremos nosso código e estudaremos a razão existente para cada linha de código.</p>
</div>
<div class="section" id="lista-das-aulas">
<h2>LISTA DAS AULAS</h2>
</div>
<div class="tab-pane" id="indice">
<table class="table table-hover">
<thead>
<tr>
<th>NOME</th>
<th>DURAÇÃO</th>
</tr>
</thead>
<tbody><tr>
<td><a href="http://excript.com/android-jogo-da-velha.html" >Jogo da Velha com Java para Android</a></td>
<td><a href="http://excript.com/android-jogo-da-velha.html" ></a></td>
</tr><tr>
<td><a href="http://excript.com/android/abertura-jogo-da-velha-android.html" >Abertura do Jogo da Venha para Android com Java</a></td>
<td><a href="http://excript.com/android/abertura-jogo-da-velha-android.html" ></a></td>
</tr><tr>
<td><a href="http://excript.com/android/adicionando-os-objetos-visuais-atraves-do-xml.html" >Adicionando os Objetos Visuais através do XML</a></td>
<td><a href="http://excript.com/android/adicionando-os-objetos-visuais-atraves-do-xml.html" ></a></td>
</tr><tr>
<td><a href="http://excript.com/android/recuperar-instancia-funcao-findviewwithtag.html" >Recuperando a Instância com a Função <tt class="docutils literal">findViewWithTag()</tt></a></td>
<td><a href="http://excript.com/android/recuperar-instancia-funcao-findviewwithtag.html" ></a></td>
</tr><tr>
<td><a href="http://excript.com/android/adicionando-controle-iniciar-partida.html" >Adicionando o controle para iniciar a partida</a></td>
<td><a href="http://excript.com/android/adicionando-controle-iniciar-partida.html" ></a></td>
</tr><tr>
<td><a href="http://excript.com/android/definindo-botoes-ja-jogados.html" >Definindo os Botões já Jogados</a></td>
<td><a href="http://excript.com/android/definindo-botoes-ja-jogados.html" ></a></td>
</tr><tr>
<td><a href="http://excript.com/android/definir-array-contera-jogadas.html" >Definindo um array que conterá as jogadas</a></td>
<td><a href="http://excript.com/android/definir-array-contera-jogadas.html" ></a></td>
</tr><tr>
<td><a href="http://excript.com/android/tracando-linha-final-jogo.html" >Traçando linha no final do jogo</a></td>
<td><a href="http://excript.com/android/tracando-linha-final-jogo.html" ></a></td>
</tr><tr>
<td><a href="http://excript.com/android/configuracao-final-jogo.html" >Configurações após a Finalização do Jogo</a></td>
<td><a href="http://excript.com/android/configuracao-final-jogo.html" ></a></td>
</tr><tr>
<td><a href="http://excript.com/android/definindo-quem-inicia-com-x-e-com-o.html" >Definindo quem inicia com X e com O</a></td>
<td><a href="http://excript.com/android/definindo-quem-inicia-com-x-e-com-o.html" ></a></td>
</tr><tr>
<td><a href="http://excript.com/android/estudando-linha-codigo-jogo.html" >Estudando cada linha do código do Jogo da Velha</a></td>
<td><a href="http://excript.com/android/estudando-linha-codigo-jogo.html" ></a></td>
</tr><tr>
<td><a href="http://excript.com/android/finalizacao-jogo-da-velha-android.html" >Finalização do Jogo da Velha no Android com Java</a></td>
<td><a href="http://excript.com/android/finalizacao-jogo-da-velha-android.html" ></a></td>
</tr> </tbody>
</table>
</div>
</div>
<br>
<br>
<span class="label label-default"></span>
Tags
<a href="http://excript.com/tag/android.html">android</a>, <a href="http://excript.com/tag/java.html">java</a>, <a href="http://excript.com/tag/jogo.html">jogo</a>, <a href="http://excript.com/tag/jogo-da-velha.html">jogo da velha</a>, <a href="http://excript.com/tag/blog.html">blog</a> </div>
<!-- /.entry-content -->
<hr/>
<section class="comments" id="comments">
<h2>Comentários</h2>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'excript'; // required: replace example with your forum shortname
var disqus_identifier = 'android-jogo-da-velha';
var disqus_url = 'http://excript.com/android-jogo-da-velha.html';
var disqus_config = function () {
this.language = "pt";
};
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var dsq = document.createElement('script');
dsq.type = 'text/javascript';
dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Por favor, ative o JavaScript para visualizar os comentários <a href="http://disqus.com/?ref_noscript"> disponibilizado por Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
</section>
</article>
</section>
</div>
<div class="col-sm-3" id="sidebar">
<aside>
</aside>
</div>
</div>
</div>
<footer>
<div class="container">
<div class="row">
<p class="site-info text-center">
</p><div class="container">
<div class="row">
<div class="col-md-6">
<h5>eXcript</h5>
<p>
A eXcript é um projeto de produção audiovisual de conteúdo técnico com foco no autodidatismo.
</p>
</div>
<div class="col-md-3">
<h5>CURSOS</h5>
<ul>
<li><a href="http://excript.com/curso-de-python.html">PYTHON</a></li>
<li><a href="http://excript.com/curso-de-java.html">JAVA</a></li>
<li><a href="http://excript.com/curso-php.html">PHP</a></li>
<li><a href="http://excript.com/curso-cpp.html">C++</a></li>
<li><a href="http://excript.com/curso-c.html">C</a></li>
<li><a href="http://excript.com/curso-de-android.html">ANDROID</a></li>
</ul>
</div>
<div class="col-md-3">
<h5>SOCIAL</h5>
<ul>
<li><a href="http://plus.google.com/+excriptvideo">GOOGLE+</a></li>
<li><a href="http://www.facebook.com/excript">FACEBOOK</a></li>
<li><a href="http://twitter.com/eXcriptBrasil">TWITTER</a></li>
</ul>
</div>
</div>
</div>
<p></p>
</div>
</div>
</footer>
<script src="http://excript.com/theme/js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="http://excript.com/theme/js/bootstrap.min.js"></script>
<!-- Enable responsive features in IE8 with Respond.js (https://github.com/scottjehl/Respond) -->
<script src="http://excript.com/theme/js/respond.min.js"></script>
<!-- Disqus -->
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
var disqus_shortname = 'excript'; // required: replace example with your forum shortname
/* * * DON'T EDIT BELOW THIS LINE * * */
(function () {
var s = document.createElement('script');
s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
<!-- End Disqus Code -->
<!-- Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-72583776-1']);
_gaq.push(['_trackPageview']);
(function () {
var ga = document.createElement('script');
ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- End Google Analytics Code -->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.6&appId=1684671528414521";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</body>
</html>