<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.zeropage.org/index.php?action=history&amp;feed=atom&amp;title=EightQueenProblem%2F%EC%9D%B4%EC%A4%80%EC%9A%B1</id>
	<title>EightQueenProblem/이준욱 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.zeropage.org/index.php?action=history&amp;feed=atom&amp;title=EightQueenProblem%2F%EC%9D%B4%EC%A4%80%EC%9A%B1"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=EightQueenProblem/%EC%9D%B4%EC%A4%80%EC%9A%B1&amp;action=history"/>
	<updated>2026-05-15T10:35:02Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://mediawiki.zeropage.org/index.php?title=EightQueenProblem/%EC%9D%B4%EC%A4%80%EC%9A%B1&amp;diff=31541&amp;oldid=prev</id>
		<title>imported&gt;Unknown at 05:23, 7 February 2021</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=EightQueenProblem/%EC%9D%B4%EC%A4%80%EC%9A%B1&amp;diff=31541&amp;oldid=prev"/>
		<updated>2021-02-07T05:23:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;8Bit Version&lt;br /&gt;
 #include &amp;amp;lt;stdio.h&amp;amp;gt;&lt;br /&gt;
 #define MASK 0x01&lt;br /&gt;
 unsigned char rmap[8], map[8] = {0,0,0,0,0,0,0,0};&lt;br /&gt;
  &lt;br /&gt;
 void result(void)&lt;br /&gt;
 {&lt;br /&gt;
     int i = 0;&lt;br /&gt;
     for (printf(&amp;quot;\nResult: &amp;quot;); i &amp;amp;lt; 8 ; printf(&amp;quot;[%2x] &amp;quot;, rmap[i++]));&lt;br /&gt;
 }&lt;br /&gt;
 int mask(unsigned char * tmap ,  register int x, register int y)&lt;br /&gt;
 {&lt;br /&gt;
     register int i;&lt;br /&gt;
  &lt;br /&gt;
     if(map[y] &amp;amp;amp; MASK &amp;amp;lt;&amp;amp;lt; x) return 0;&lt;br /&gt;
     memcpy(tmap, map, 8);&lt;br /&gt;
     rmap[y] = MASK &amp;amp;lt;&amp;amp;lt; x;&lt;br /&gt;
     map[y] |= 0xff;&lt;br /&gt;
     for (i = 0;i &amp;amp;lt; 8;i++)&lt;br /&gt;
         map[i] |=  (MASK &amp;amp;lt;&amp;amp;lt; x) | (MASK &amp;amp;lt;&amp;amp;lt; (x - y + i)) | (MASK &amp;amp;lt;&amp;amp;lt; (x + y - i));&lt;br /&gt;
  &lt;br /&gt;
     return 1;&lt;br /&gt;
 }&lt;br /&gt;
 void checkQueen(int depth)&lt;br /&gt;
 {&lt;br /&gt;
     int i;&lt;br /&gt;
     unsigned char tmap[8];&lt;br /&gt;
  &lt;br /&gt;
     for( i = 0;i &amp;amp;lt; 8 &amp;amp;amp;&amp;amp;amp; depth &amp;amp;lt; 8;i++) {&lt;br /&gt;
         if(mask(tmap, i, depth)) {&lt;br /&gt;
             if((depth + 1) == 8) result();&lt;br /&gt;
             checkQueen(depth + 1);&lt;br /&gt;
             memcpy(map, tmap, 8);&lt;br /&gt;
         }&lt;br /&gt;
     }&lt;br /&gt;
 }&lt;br /&gt;
 int main()&lt;br /&gt;
 {&lt;br /&gt;
     checkQueen(0);&lt;br /&gt;
     return 0;&lt;br /&gt;
 }&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;Unknown</name></author>
	</entry>
</feed>